*
* @throws GeDAException exception
*/
@Test
public void testWithConversion() throws GeDAException {
final TestDto3Class dto = new TestDto3Class();
final TestEntity3Class entity = new TestEntity3Class();
entity.setDecision(true);
final ValueConverter conv3toDto = new TestConverter3();
final Map<String, Object> converters = new HashMap<String, Object>();
converters.put("boolToEnum", conv3toDto);
final Assembler assembler =
DTOAssembler.newCustomAssembler(TestDto3Class.class, TestEntity3Class.class, synthesizer);
assembler.assembleDto(dto, entity, converters, null);
assertEquals(Decision.Decided, dto.getMyEnum());
dto.setMyEnum(Decision.Undecided);
assembler.assembleEntity(dto, entity, converters, null);
}