### Question:
IOUtils { public static String[] readLines(File file) throws IOException { if (file == null || !file.exists() || !file.canRead()) { return new String[0]; } return readLines(new FileInputStream(file)); } private  IOUtils(); static long write(InputStream is, OutputStream os); static long write(InputStream is, OutputStream os, int bufferSize); static String read(Reader reader); static long write(Writer writer, String string); static long write(Reader reader, Writer writer); static long write(Reader reader, Writer writer, int bufferSize); static String[] readLines(File file); static String[] readLines(InputStream is); static void writeLines(OutputStream os, String[] lines); static void writeLines(File file, String[] lines); static void appendLines(File file, String[] lines);  }### Answer:
@Test public void testReadLines() throws Exception { String[] lines = IOUtils.readLines(is); assertThat(lines.length, equalTo(1)); assertThat(lines[0], equalTo(TEXT)); }