@Test
public void shouldServeExternalDocument() throws IOException {

    File file = FileUtils.writeToTempFile("FILE_TOKEN");
    AbstractHtmlErrorHandler handler
            = new SampleHtmlErrorHanlder("", "", "", file.getAbsolutePath());
    handler.serve(response);
    assertThat(outputStream.toString(), containsString("FILE_TOKEN"));
}