### Question:
CreditCardAuthorizationPaymentProcessor implements PaymentProcessor { @Override public void processPayment(Payment payment, PaymentOperationData data) throws WirecardPaymenException { String token = data.getTokenId(); CardToken cardToken = new CardToken(); cardToken.setTokenId(token); payment.setCardToken(cardToken); TransactionType transactionType = payment.getTransactionType(); if ((TransactionType.AUTHORIZATION).equals(transactionType)) { checkRecurringPayment(payment, data); } else if ((TransactionType.CHECK_ENROLLMENT).equals(transactionType)) { setCardSavedStatusInSession(data); } }  @Override void processPayment(Payment payment, PaymentOperationData data); ObjectFactory getObjectFactory(); void setObjectFactory(ObjectFactory objectFactory); @Required void setWirecardHopPaymentOperationsFacade(WirecardHopPaymentOperationsFacade wirecardHopPaymentOperationsFacade);  }### Answer:
@Test public void testPaymentOperation() throws WirecardPaymenException { PaymentOperationData data = new PaymentOperationData(); creditCardAuthorizationPaymentProcessor.processPayment(payment, data); assertEquals("Response data does not match", cardToken, payment.getCardToken()); }