ExceptionsHandler extends BaseExceptionHandler<Response> { @Override protected <R> Response notFound(R body) { return Response .status(Response.Status.NOT_FOUND) .header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON) .entity(body) .build(); }    }
@Test void testNotFound() { tested.notFound(body); assertRequest(Response.Status.NOT_FOUND); }