assertThat(descriptor.findPropertyDescriptor("simple"), is(notNullValue()));
Method simple = descriptor.getDataModelClass().getMethod("getIgnoredOption");
HiveField field = simple.getAnnotation(HiveField.class);
assertThat(field, is(notNullValue()));
assertThat(field.ignore(), is(true));
}
private DataModelDescriptor descriptor(ModelLoader loader, String simpleName) {
try {
Class<?> aClass = loader.load(HiveDataModelEmitter.CATEGORY, simpleName);