protected PaymentTransactionEntryModel createPaymentTransactionEntry(
     final PaymentTransactionType type, final TransactionStatus status) {
   final PaymentTransactionEntryModel paymentTransactionEntry = new PaymentTransactionEntryModel();
   paymentTransactionEntry.setType(type);
   paymentTransactionEntry.setTransactionStatus(status.toString());
   return paymentTransactionEntry;
 }
  @Test
  public void testExecuteActionNOK() throws RetryLaterException, Exception {
    final OrderProcessModel businessProcessModel = new OrderProcessModel();

    final OrderModel order = new OrderModel();
    final PaymentTransactionModel paymentTransaction = new PaymentTransactionModel();
    final PaymentTransactionEntryModel entry = new PaymentTransactionEntryModel();
    entry.setType(PaymentTransactionType.AUTHORIZATION);
    entry.setTransactionStatus(TransactionStatus.REJECTED.name());
    paymentTransaction.setEntries(Arrays.asList(entry));
    businessProcessModel.setOrder(order);
    order.setPaymentTransactions(Arrays.asList(paymentTransaction));
    Assertions.assertThat(checkAuthorizeOrderPayment.executeAction(businessProcessModel))
        .isEqualTo(Transition.NOK);
  }