}
@Test
public void testIdShardingStrategy() {
IndexManager[] dps = new IndexManager[] { RamIndexManager.makeRamDirectory(), RamIndexManager.makeRamDirectory() };
IdHashShardingStrategy shardingStrategy = new IdHashShardingStrategy();
shardingStrategy.initialize( null, dps );
assertTrue( dps[1] == shardingStrategy.getIndexManagerForAddition( Animal.class, 1, "1", null ) );
assertTrue( dps[0] == shardingStrategy.getIndexManagerForAddition( Animal.class, 2, "2", null ) );
dps[0].destroy();
dps[1].destroy();
}