ProductionWriter { String asHTML() throws ProductionException { return mergeTemplate(HTML_TEMPLATE); } ProductionWriter(Production production);  ProductionWriter(Production production, String[] imgUrls); void write(File stagingDir); void writeAsXML(File stagingDir); void writeAsHTML(File stagingDir);  }
@Test public void testAsHtml() throws Exception { String html = productionWriter.asHTML(); assertNotNull(html); html = html.replace(System.lineSeparator(), "\n"); assertEquals(2168, html.length()); assertTrue(html.contains("<td align=\"left\">9A3F</td>")); }