@Test
public void rethrowsIOExceptionThatThrownByEverrestProcessor() throws Exception {

    IOException ioException = new IOException();
    doThrow(ioException).when(everrestProcessor).process(isA(ServletContainerRequest.class), isA(ContainerResponse.class), isA(EnvironmentContext.class));
    thrown.expect(exceptionSameInstanceMatcher(ioException));
    everrestServlet.service(request, response);
}