"model = {",
" @directio.hive.field(name = 'f')",
" simple : INT;",
"};"
});
DataModelDescriptor descriptor = descriptor(loader, "ModelDescriptorFactory");
PropertyDescriptor property = descriptor.findPropertyDescriptor("f");
assertThat(property, is(notNullValue()));
assertThat(property.getFieldName(), is("f"));
assertThat(property.getInspector().getTypeName(), is("int"));
Method simple = descriptor.getDataModelClass().getMethod("getSimpleOption");
HiveField field = simple.getAnnotation(HiveField.class);
assertThat(field, is(notNullValue()));
assertThat(field.name(), is("f"));
}