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