UpdateConverter extends AbstractConverter<S, T> { @Override public T convert(final S source, final T target) { target.setUpdateDate(new Date()); return target; }  @Override T convert(final S source, final T target); @Override T convert(final S source);  }
@Test public void testConvert() throws Exception { StreetType streetType = new StreetType(); StreetTypeResource streetTypeResource = new StreetTypeResource(); unit.convert(streetTypeResource, streetType); assertNotNull(streetType.getUpdateDate()); }
@Test(expected = UnsupportedOperationException.class) public void testConvertWithOneArgument() throws Exception { unit.convert(null); }