    @Test
    public void pingReturnsFailure_whenSecondTraceFails() throws Exception {

        doReturn(ResponseEntity.badRequest().body("invalid content")).when(restTemplate).getForEntity("http://" + orders + "/process-order", String.class);

        OrderResponse response = this.subject.chargeChard();

        OrderResponse expectedResponse = new OrderResponse(false, "unable to process order, please try again.");
        assertThat(response, equalTo(expectedResponse));
        verify(restTemplate).getForEntity("http://" + orders + "/process-order", String.class);
    }