WorldpayBankConfigurationPopulator implements Populator<WorldpayBankConfigurationModel, BankConfigurationData> { @Override public void populate(final WorldpayBankConfigurationModel worldpayBankConfigurationModel, final BankConfigurationData bankConfigurationData) throws ConversionException { bankConfigurationData.setBankCode(worldpayBankConfigurationModel.getCode()); bankConfigurationData.setBankName(worldpayBankConfigurationModel.getName()); }  @Override void populate(final WorldpayBankConfigurationModel worldpayBankConfigurationModel, final BankConfigurationData bankConfigurationData);  }
@Test public void populateShouldAddBankCodeToBankConfiguration() throws Exception { testObj.populate(worlpayBankConfigurationModelMock, bankConfigurationDataMock); verify(bankConfigurationDataMock).setBankCode(worlpayBankConfigurationModelMock.getCode()); }
@Test public void populateShouldAddBankNameToBankConfiguration() throws Exception { testObj.populate(worlpayBankConfigurationModelMock, bankConfigurationDataMock); verify(bankConfigurationDataMock).setBankName(worlpayBankConfigurationModelMock.getName()); }