@Test
public void wrapsUnexpectedExceptionWithUnhandledException() throws Exception {

    RuntimeException exception = new RuntimeException();
    doThrow(exception).when(requestDispatcher).dispatch(request, response);
    thrown.expect(UnhandledException.class);
    thrown.expectCause(exceptionSameInstanceMatcher(exception));
    requestHandler.handleRequest(request, response);
}