EducationTypeResourceConverter extends AbstractConverter<EducationTypeResource, EducationType> { @Override public EducationType convert(final EducationTypeResource source, final EducationType target) { target.setName(source.getName()); target.setAbbrName(source.getAbbrName()); return target; }  @Override EducationType convert(final EducationTypeResource source, final EducationType target); @Override EducationType convert(final EducationTypeResource source);  }
@Test public void testConvert() throws Exception { String name = "EducationN"; String abbrName = "AN"; EducationType expected = new EducationType(); expected.setName(name); expected.setAbbrName(abbrName); EducationTypeResource source = new EducationTypeResource(); source.setName(name); source.setAbbrName(abbrName); EducationType actual = unit.convert(source); assertEquals(expected, actual); }