@Test public void testRead() { try (FileInput instance = new FileInput(testsFileName)) { String str = "token1,token2,token3\n\napples, oranges, pears\none , two , three\na,b,c,d,e,f\nunos, dos,tres,,quatorze\n\nlast, complete, line,\n# comment1, comment2, comment3\n\n"; String contents = instance.read(); assertTrue(str.equals(contents)); } catch (IOException ex) { fail("Caught IOException in testReadNextLine()"); } }