@Test
public void testExampleFromHomepage_usage2() throws Exception {

    // choose the character stream to modify
    Reader originalReader = new StringReader("edit\n\nStream");
    // select the modifier
    Modifier myModifier = new RegexModifier("edit(\\s+)stream", Pattern.CASE_INSENSITIVE, "modify$1stream");
    // create the modifying reader that wraps the original reader
    Reader modifyingReader = new ModifyingReader(originalReader, myModifier);
    // use the modifying reader instead of the original reader
    String output = IOUtils.toString(modifyingReader);
    assertEquals("modify\n\nstream", output);
}