@Test(expected = IOException.class)
public void shouldThrowExceptionWhenDocumentPathIsMissing() throws Exception {

    AbstractHtmlErrorHandler handler
            = new SampleHtmlErrorHanlder("500", "", "", "/tmp/nonexistend");
    handler.serve(response);
}