public void testReaderOnIfaceCenum() throws GeDAException {
final TestSynthesizerByInterface dto = new TestSynthesizerByClass();
dto.setEnum(EnumVal.Three);
final DataReader reader = new MethodSynthesizerProxy(this.getClass().getClassLoader(), this.synthesizer).synthesizeReader(
PropertyInspector.getDtoPropertyDescriptorForField(
TestDto1Interface.class, "enum",
PropertyInspector.getPropertyDescriptorsForClass(TestSynthesizerByInterface.class)
)
);
assertEquals(EnumVal.class, reader.getReturnType());
assertEquals(EnumVal.Three, reader.read(dto));
}