* @throws GeDAException should not be thrown
*/
@Test
public void testSynthesizeWriterOnInterface() throws GeDAException {
final TestDto1Interface dto = new TestDto1Class();
dto.setMyString("Hello");
final DataWriter writerMyString = new SunJavaToolsMethodSynthesizer(this.getClass().getClassLoader(), WORKING_DIRECTORY).synthesizeWriter(
PropertyInspector.getDtoPropertyDescriptorForField(
TestDto1Interface.class, "myString",
PropertyInspector.getPropertyDescriptorsForClass(TestDto1Interface.class)
)
);
assertEquals(String.class, writerMyString.getParameterType());
writerMyString.write(dto, "Goodbye");
assertEquals("Goodbye", dto.getMyString());
}