### Question:
FileScanner { public static List<String> produceLines(File file, int skip) { try { return produceLines(new FileInputStream(file),skip); } catch (FileNotFoundException e) { throw new RuntimeException(e); } } private  FileScanner(); static List<String> produceLines(File file, int skip); static List<String> produceLines(InputStream inputStream, int skip);  }### Answer:
@Test public void verifyCorrectNumberOfScannedLines() throws IOException { assertEquals(4, FileScanner.produceLines(FileScannerTest.class.getClassLoader().getResourceAsStream("scanner-test.csv"), 0).size()); }
@Test public void verifyCorrectlyScannedLines() throws IOException { List<String> lines = FileScanner.produceLines(FileScannerTest.class.getClassLoader().getResourceAsStream("scanner-test.csv"),1); assertEquals(3, lines.size()); assertEquals("line1;bla", lines.get(0)); assertEquals("line2;bla", lines.get(1)); assertEquals("line3;bla", lines.get(2)); }