@Test
public void processPaymentFail_whenOrderNotFound() {

    when(paymentRepository.save(payment)).thenReturn(payment);
    when(orderRepository.findOrderById(ORDER_ID)).thenReturn(null);
    paymentService.processPayment(payment);
    verify(restTemplate).postForLocation(ORDER_COMPLETE_UPDATER
            + "/api/errors", "Failed to retrieve order for orderId: " + ORDER_ID);
}