### Question:
IO { public static String readIntoString(Reader reader) throws IOException { StringWriter writer = new StringWriter(); pipe(reader, writer); return writer.toString(); }  static byte[] readIntoByteArray(InputStream in); static void pipe(InputStream source, OutputStream destination); static void pipe(Reader source, Writer destination); static String readIntoString(Reader reader);  }### Answer:
@Test public void testReadingFromReaderToString() throws Exception { String expected = "abc"; assertEquals(expected, IO.readIntoString(new StringReader(expected))); }