@Test
public void exceptionWithResponse() {
Response mockr = mock(Response.class);
when(mockr.getStatus()).thenReturn(500);
DefaultOptionsMethodException dome =
new DefaultOptionsMethodException("oops", mockr);
DefaultOptionsMethodExceptionMapper domem =
injector.getInstance(DefaultOptionsMethodExceptionMapper.class);
Response r = domem.toResponse(dome);
assertEquals(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), r.getStatus());
assertEquals(mockr, r);
assertEquals("oops", dome.getMessage());
}