EducationFormTypeConverter extends AbstractConverter<EducationFormType, EducationFormTypeResource> { @Override public EducationFormTypeResource convert(final EducationFormType source, final EducationFormTypeResource target) { target.setId(source.getId()); target.setName(source.getName()); return target; }  @Override EducationFormTypeResource convert(final EducationFormType source, final EducationFormTypeResource target); @Override EducationFormTypeResource convert(final EducationFormType source);  }
@Test public void testConvert() throws Exception { String name = "name"; EducationFormType source = new EducationFormType(); source.setName(name); EducationFormTypeResource expected = new EducationFormTypeResource(); expected.setName(name); EducationFormTypeResource actual = unit.convert(source); assertEquals(expected, actual); }