NoLogWebApplicationExceptionMapper extends
    CandlepinExceptionMapper implements
    ExceptionMapper<NoLogWebApplicationException> { @Override public Response toResponse(NoLogWebApplicationException exception) { return getDefaultBuilder(exception, Response.Status.fromStatusCode( exception.getResponse().getStatus()), determineBestMediaType()).build(); }  @Override Response toResponse(NoLogWebApplicationException exception);  }
@Test public void handleNoLogWebAppExc() { NoLogWebApplicationException isee = new NoLogWebApplicationException(400); NoLogWebApplicationExceptionMapper iseem = injector.getInstance(NoLogWebApplicationExceptionMapper.class); Response r = iseem.toResponse(isee); assertEquals(400, r.getStatus()); verifyMessage(r, rtmsg("")); }