### Question:
NonUniqueResultExceptionMapper implements ExceptionMapper<NonUniqueResultException> { @Override public Response toResponse(NonUniqueResultException e) { return Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build(); }  @Override Response toResponse(NonUniqueResultException e);  }### Answer:
@Test public void testNonUniqueResultExceptionMapper() { NonUniqueResultExceptionMapper mapper = new NonUniqueResultExceptionMapper(); Response response = mapper.toResponse(exception); assertNotNull(response); assertEquals(BAD_REQUEST, response.getStatus()); }