AssetStatusResourceConverter extends AbstractConverter<AssetStatusResource, AssetStatus> { @Override public AssetStatus convert(final AssetStatusResource source, final AssetStatus target) { target.setName(source.getName()); return target; }  @Override AssetStatus convert(final AssetStatusResource source, final AssetStatus target); @Override AssetStatus convert(final AssetStatusResource source);  }
@Test public void testConvert() throws Exception { Long id = 1L; String name = "name"; AssetStatus expected = new AssetStatus(); expected.setName(name); AssetStatusResource source = new AssetStatusResource(); source.setId(id); source.setName(name); AssetStatus actual = unit.convert(source); assertEquals(expected, actual); }