### Question:
BatchLineReader { public List<String> toList() throws IOException { final List<String> result = new ArrayList<String>(); String currentLine = readLine(); if(currentLine != null) { currentBoundary = currentLine.trim(); result.add(currentLine); while ((currentLine = readLine()) != null) { result.add(currentLine); } } return result; } BatchLineReader(final InputStream reader);  BatchLineReader(final InputStream reader, final int bufferSize); void close(); List<String> toList(); List<Line> toLineList(); static final String BOUNDARY; static final String DOUBLE_DASH; static final String CRLF; }### Answer:
@Test public void testToList() throws IOException { BatchLineReader reader = create(TEXT_COMBINED); List<Line> stringList = reader.toLineList(); assertEquals(11, stringList.size()); assertEquals("Test\r", stringList.get(0).toString()); assertEquals("Test2\r\n", stringList.get(1).toString()); assertEquals("Test3\n", stringList.get(2).toString()); assertEquals("Test4\r", stringList.get(3).toString()); assertEquals("\r", stringList.get(4).toString()); assertEquals("\r\n", stringList.get(5).toString()); assertEquals("\r\n", stringList.get(6).toString()); assertEquals("Test5\n", stringList.get(7).toString()); assertEquals("Test6\r\n", stringList.get(8).toString()); assertEquals("Test7\n", stringList.get(9).toString()); assertEquals("\n", stringList.get(10).toString()); reader.close(); }