SalaryTypeResourceConverter extends AbstractConverter<SalaryTypeResource, SalaryType> { @Override public SalaryType convert(final SalaryTypeResource source, final SalaryType target) { target.setName(source.getName()); target.setAbbrName(source.getAbbrName()); return target; }  @Override SalaryType convert(final SalaryTypeResource source, final SalaryType target); @Override SalaryType convert(final SalaryTypeResource source);  }
@Test public void testConvert() throws Exception { String name = "first blood"; String abbrName = "fb"; SalaryType expected = new SalaryType(); expected.setName(name); expected.setAbbrName(abbrName); SalaryTypeResource source = new SalaryTypeResource(); source.setName(name); source.setAbbrName(abbrName); SalaryType actual = unit.convert(source); assertEquals(expected, actual); }