@Test
public void createsResponseWithStatus500AndUsesFullClassNameOfExceptionAsEntity() {

    Exception exception = new Exception();
    Response response = exceptionMapper.toResponse(exception);
    assertEquals(500, response.getStatus());
    assertEquals(TEXT_PLAIN_TYPE, response.getMediaType());
    assertEquals(exception.getClass().getName(), response.getEntity());
}