}
@Test
public void testFieldDescriptorLuceneOptions() {
String fieldName = "my-snafu";
FieldDescriptor fieldDescriptor = getFieldDescriptor( Snafu.class, fieldName );
assertEquals( "Wrong field name", fieldName, fieldDescriptor.getName() );
assertEquals( Index.NO, fieldDescriptor.getIndex() );
assertEquals( Analyze.NO, fieldDescriptor.getAnalyze() );
assertEquals( Store.YES, fieldDescriptor.getStore() );
assertEquals( Norms.NO, fieldDescriptor.getNorms() );
assertEquals( TermVector.WITH_POSITIONS, fieldDescriptor.getTermVector() );
assertEquals( 10.0f, fieldDescriptor.getBoost(), 0 );
assertFalse( fieldDescriptor.indexNull() );
assertNull( fieldDescriptor.indexNullAs() );
assertTrue( FieldSettingsDescriptor.Type.BASIC.equals( fieldDescriptor.getType() ) );
}