InternalServerErrorExceptionMapper extends
    CandlepinExceptionMapper implements
    ExceptionMapper<InternalServerErrorException> { @Override public Response toResponse(InternalServerErrorException exception) { return getDefaultBuilder(exception, Response.Status.INTERNAL_SERVER_ERROR, determineBestMediaType()).build(); }  @Override Response toResponse(InternalServerErrorException exception);  }
@Test public void handleISE() { InternalServerErrorException isee = new InternalServerErrorException("fubarred"); InternalServerErrorExceptionMapper iseem = injector.getInstance(InternalServerErrorExceptionMapper.class); Response r = iseem.toResponse(isee); assertEquals(500, r.getStatus()); verifyMessage(r, rtmsg("fubarred")); }