### Question:
GenericExceptionMapper implements ExceptionMapper<Exception> { @Override public Response toResponse(Exception e) { return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build(); }  @Override Response toResponse(Exception e);  }### Answer:
@Test public void testGenericExceptionMapper() { GenericExceptionMapper mapper = new GenericExceptionMapper(); Response response = mapper.toResponse(exception); assertNotNull(response); assertEquals(INTERNAL_SERVER_ERROR, response.getStatus()); }