public class ApplicationExceptionMapperTest extends TestExceptionMapperBase {
@Test
public void withCause() {
EOFException eofe = new EOFException("screwed");
ApplicationException ae = new ApplicationException("oops", eofe);
ApplicationExceptionMapper aem =
injector.getInstance(ApplicationExceptionMapper.class);
Response r = aem.toResponse(ae);
assertEquals(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), r.getStatus());
verifyMessage(r, rtmsg("oops"));