@Test
public void testReadLines() throws Exception {

    File file = File.createTempFile("junit", ".txt", new File("build"));
    try (Writer fwr = new FileWriter(file)) {
        fwr.write("line1\n");
        fwr.write("line2");
    }
    List<String> lines = IOExt.readLines(file);
    assertThat(lines).containsExactly("line1", "line2");
}