@Test
public void testFromOnString() throws IOException {

  final Object[][] testParameters =
      new Object[][] {{new CharArrayReader(new char[] {'a', 'b', 'c'}), "abc"},
          {new StringReader("hello"), "hello"}};
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[1];
    Reader reader = (Reader) testParameter[0];
    assertEquals(expected, IoUtils.from(reader));
  }
}