From diversity indices to community assembly processes: a test with simulated data