### Question:
FileIO { public Reader getReader() { try { InputStream is = getInputStream(); if (is == null) { return null; } return new InputStreamReader(new BufferedInputStream(is), "UTF-8"); } catch (IOException e) { return null; } } FileIO(String path); String getName(); String getPath(); boolean fileExists(); boolean directoryExists(); OutputStream getOutputStream(); InputStream getInputStream(); Writer getWriter(); Reader getReader(); void createFolderTree(boolean onlyParents); List<FileIO> getChildren(); void write(byte[] bytes); byte[] read();  }### Answer:
@Test public void testGetReaderReturnsNullIfFileDoesntExist() { assertNull(io.getReader()); }
@Test public void testGetreader() throws IOException { FileIO fio = new FileIO("pom.xml"); Reader r = fio.getReader(); assertEquals((char) r.read(), '<'); assertEquals((char) r.read(), 'p'); }