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