public void testSynthesizeReaderOnInterface() throws GeDAException {
final TestDto1Interface dto = new TestDto1Class();
dto.setMyString("Hello");
final DataReader readerMyString = new SunJavaToolsMethodSynthesizer(this.getClass().getClassLoader(), WORKING_DIRECTORY).synthesizeReader(
PropertyInspector.getDtoPropertyDescriptorForField(
TestDto1Interface.class, "myString",
PropertyInspector.getPropertyDescriptorsForClass(TestDto1Interface.class)
)
);
assertEquals("Hello", readerMyString.read(dto));
assertEquals(String.class, readerMyString.getReturnType());
}