private void assertFooter(final File file) throws Exception { final HtmlLayout layout = HtmlLayout.createDefaultLayout(); final String footer = new String(layout.getFooter(), Charset.defaultCharset()); final String contents = new String(slurp(file), Charset.defaultCharset()); assertTrue(file.getName(), contents.endsWith(footer)); }