}
@Test
public void testSharedIndexInformation() {
TypeMetadata typeMetadata = metadataProvider.getTypeMetadataFor( Foo.class );
IndexedTypeDescriptor typeDescriptor = new IndexedTypeDescriptorImpl(
typeMetadata,
DescriptorTestHelper.getDummyShardedIndexManager()
);
assertTrue( typeDescriptor.isSharded() );
Set<IndexDescriptor> indexDescriptors = typeDescriptor.getIndexDescriptors();
assertTrue( indexDescriptors.size() == 3 );
for ( IndexDescriptor indexDescriptor : indexDescriptors ) {
String shardName = indexDescriptor.getName();
assertTrue(
"Missing shard name: " + shardName,