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