@Test
public void wrapsCauseOfUnhandledExceptionWithServletException() throws Exception {

    Exception exception = new Exception();
    UnhandledException unhandledException = new UnhandledException(exception);
    doThrow(unhandledException).when(everrestProcessor).process(isA(ServletContainerRequest.class), isA(ContainerResponse.class), isA(EnvironmentContext.class));
    thrown.expect(ServletException.class);
    thrown.expectCause(exceptionSameInstanceMatcher(exception));
    everrestServlet.service(request, response);
}