### Question:
LogViewer { public static String highlight(final String data, final int lineNumber) { StringBuffer sb = new StringBuffer(); sb.append("<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" /></head><body><style>b{background:brown;color:white;}\nspan{background:lightgrey;}</style><pre>").append(highlightLine(data, lineNumber)).append("</pre></body></html>"); return sb.toString(); }  static String getLogsList2(final String logsRootDir); static String getLogsList(final String logsRootDir); static String highlight(final String data, final int lineNumber); static String addLineNumbers(String orig, String scriptPath);  }### Answer:
@Test public void testHighlight() { String data = "test"; assertEquals("<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" /></head><body><style>b{background:brown;color:white;}\nspan{background:lightgrey;}</style><pre><span>1</span> test\n</pre></body></html>", LogViewer.highlight(data, -1)); }