JobTypeResourceConverter extends AbstractConverter<JobTypeResource, JobType> { @Override public JobType convert(final JobTypeResource source, final JobType target) { target.setName(source.getName()); target.setAbbrName(source.getAbbrName()); return target; }  @Override JobType convert(final JobTypeResource source, final JobType target); @Override JobType convert(final JobTypeResource source);  }
@Test public void testConvert() throws Exception { String name = "LieToMe"; String abbrName = "LTM"; JobType expected = new JobType(); expected.setAbbrName(abbrName); expected.setName(name); JobTypeResource source = new JobTypeResource(); source.setAbbrName(abbrName); source.setName(name); JobType actual = unit.convert(source); assertEquals(expected, actual); }