WorldpayCCPaymentInfoPopulator implements Populator<CreditCardPaymentInfoModel, CCPaymentInfoData> { @Override public void populate(final CreditCardPaymentInfoModel source, final CCPaymentInfoData target) throws ConversionException { target.setBin(source.getBin()); }  @Override void populate(final CreditCardPaymentInfoModel source, final CCPaymentInfoData target);  }
@Test public void populate_ShouldPopulateBinAttribute() { when(source.getBin()).thenReturn(BIN); testObj.populate(source, target); verify(target).setBin(BIN); }