StacktraceLines { public List<String> getLines() { return lines; } StacktraceLines(List<String> lines); List<String> getLines(); int getTotalLineLength(); List<String> getFirstLines(int firstSize); List<String> getLastLines(int lastSize);  }
@Test public void testStacktraceLinesGetLines() { StacktraceLines stackTraceLines = new StacktraceLines(lines); List<String> extractedLines = stackTraceLines.getLines(); assertThat(lines, equalTo(extractedLines)); }