### Question:
SecurityExceptionMapper implements ExceptionMapper<SecurityException> { @Override public Response toResponse(final SecurityException exception) { LOGGER.error("Security exception", exception); return Response.serverError().build(); }  @Override Response toResponse(final SecurityException exception);  }### Answer:
@Test public void toResponse() { final SecurityException securityException = new SecurityException("OUCH"); final Response result = instance.toResponse(securityException); assertThat(result).isNotNull(); assertThat(result.getEntity()).isNull(); assertThat(result.getStatus()).isEqualTo(500); }