### Question:
ResponseHandler { public void acceptedResponse(ResponseEntity<String> response) throws BPMNFailureException { int status = setStatus(response.getStatusCodeValue()); if (status != HttpStatus.SC_ACCEPTED) { logger.info("Camunda did not return a valid response"); throw new BPMNFailureException.Builder(String.valueOf(status), HttpStatus.SC_INTERNAL_SERVER_ERROR, ErrorNumbers.ERROR_FROM_BPEL).build(); } }  CamundaResponse getCamundaResponse(ResponseEntity<String> camundaResponse); void acceptedResponse(ResponseEntity<String> response); void acceptedOrNoContentResponse(ResponseEntity<String> response); int setStatus(int statusCode);  }### Answer:
@Test public void acceptedResponseTest() throws IOException, BPMNFailureException { ResponseEntity<String> camundaResponse = ResponseEntity.noContent().build(); thrown.expect(BPMNFailureException.class); thrown.expectMessage("Request Failed due to BPEL error with HTTP Status = 204"); responseHandler.acceptedResponse(camundaResponse); }