DefaultWorldpaySettledOrderNotificationProcessorStrategy implements OrderNotificationProcessorStrategy { @Override public void processNotificationMessage(final PaymentTransactionModel paymentTransactionModel, final OrderNotificationMessage orderNotificationMessage) { transactionTemplate.execute(transactionStatus -> worldpayPaymentTransactionService.createNotPendingSettledPaymentTransactionEntry(paymentTransactionModel, orderNotificationMessage)); }  @Override void processNotificationMessage(final PaymentTransactionModel paymentTransactionModel, final OrderNotificationMessage orderNotificationMessage); @Required void setTransactionTemplate(TransactionOperations transactionTemplate); @Required void setWorldpayPaymentTransactionService(WorldpayPaymentTransactionService worldpayPaymentTransactionService);  }
@Test public void shouldCreateASettledPaymentTransactionEntry() { testObj.processNotificationMessage(paymentTransactionModelMock, orderNotificationMessageMock); verify(worldpayPaymentTransactionServiceMock).createNotPendingSettledPaymentTransactionEntry(paymentTransactionModelMock, orderNotificationMessageMock); }