### Question:
BankAccountPaymentProcessor implements PaymentProcessor { @Override public void processPayment(Payment payment, PaymentOperationData data) throws WirecardPaymenException { BankAccount bankAccount = objectFactory.createBankAccount(); bankAccount.setBic(data.getBic()); bankAccount.setIban(data.getIban()); payment.setBankAccount(bankAccount); }  @Override void processPayment(Payment payment, PaymentOperationData data); ObjectFactory getObjectFactory(); @Required void setObjectFactory(ObjectFactory objectFactory);  }### Answer:
@Test public void testPaymentOperation() throws WirecardPaymenException { Payment payment = new Payment(); bankAccountPaymentProcessor.processPayment(payment, data); assertEquals("Iban does not match", iban, payment.getBankAccount().getIban()); assertEquals("Bic does not match", bic, payment.getBankAccount().getBic()); }