### Question:
OryxExceptionMapper implements ExceptionMapper<OryxServingException> { @Override public Response toResponse(OryxServingException exception) { Response.ResponseBuilder response = Response.status(exception.getStatusCode()); if (exception.getMessage() != null) { response = response.entity(exception.getMessage()); } return response.build(); }  @Override Response toResponse(OryxServingException exception);  }### Answer:
@Test public void testMap() { OryxExceptionMapper mapper = new OryxExceptionMapper(); OryxServingException ex = new OryxServingException(Response.Status.BAD_REQUEST, "Bad request"); Response response = mapper.toResponse(ex); assertEquals(Response.Status.BAD_REQUEST.getStatusCode(), response.getStatus()); assertEquals("Bad request", response.getEntity().toString()); }