### Question:
ResourceCorruptedExceptionMapper implements ExceptionMapper<ResourceCorruptedException> { @Override public Response toResponse(ResourceCorruptedException exception) { return Response.status(Response.Status.BAD_REQUEST). entity(exception.getErrorDescriptor()). build(); }  @Override Response toResponse(ResourceCorruptedException exception);  }### Answer:
@Test public void toResponse(){ final Response result = new ResourceCorruptedExceptionMapper() .toResponse(new ResourceCorruptedException("Domain schema can't be parsed.")); assertNotNull(result); assertEquals(result.getStatus(), 400); }