assertEquals( "There should be two field descriptors", 2, fieldDescriptors.size() );
}
@Test
public void testRetrievingPropertyDescriptors() {
IndexedTypeDescriptor typeDescriptor = DescriptorTestHelper.getTypeDescriptor( metadataProvider, Snafu.class );
Set<PropertyDescriptor> propertyDescriptors = typeDescriptor.getIndexedProperties();
assertEquals( "There should be 5 properties defined in Snafu", 5, propertyDescriptors.size() );
Set<String> expectedPropertyNames = new HashSet<String>();
expectedPropertyNames.add( "id" );
expectedPropertyNames.add( "snafu" );
expectedPropertyNames.add( "numericField" );