WorldpayEmailAddressPopulator implements Populator<AddressModel, AddressData> { @Override public void populate(final AddressModel source, final AddressData target) throws ConversionException { target.setEmail(source.getEmail()); }  @Override void populate(final AddressModel source, final AddressData target);  }
@Test public void testPopulateEmail(){ when(addressModelMock.getEmail()).thenReturn(EMAIL_ADDRESS); testObj.populate(addressModelMock, addressDataMock); verify(addressDataMock).setEmail(EMAIL_ADDRESS); }