@Test
public void processPaymentFail_whenAmountMisMatch() {

    when(paymentRepository.save(payment)).thenReturn(payment);
    when(orderRepository.findOrderById(ORDER_ID)).thenReturn(order);
    payment.setAmount(ORDER_TOTAL_PRICE + 10);
    paymentService.processPayment(payment);
    verify(restTemplate).postForLocation(ORDER_COMPLETE_UPDATER + "/api/errors", "Payment amount: "
            + payment.getAmount() + " doesn't match with order price: " + ORDER_TOTAL_PRICE + ", orderId = " + ORDER_ID);
}