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