### Question:
AutoDiscoveryDisabledExceptionMapper implements ExceptionMapper<AutoDiscoveryDisabledException> { @Override public Response toResponse(final AutoDiscoveryDisabledException exception) { LOGGER.debug(null, exception); return Response.status(Response.Status.FORBIDDEN) .entity(exception.getMessage()) .type(MediaType.TEXT_PLAIN) .build(); }  @Override Response toResponse(final AutoDiscoveryDisabledException exception);  }### Answer:
@Test public void handleAutoDiscoveryDisabledException() { final String message = ".. all outta gum"; final AutoDiscoveryDisabledException exception = new AutoDiscoveryDisabledException(message); final Response result = mapper.toResponse(exception); assertThat(result.getStatus()).isEqualTo(403); assertThat(result.getEntity()).isEqualTo(message); }