@Test
public void testExampleFromHomepage_usage() throws Exception {

    // choose the character stream to modify
    Reader originalReader = new StringReader("edit stream");
    // select the modifier
    Modifier myModifier = new RegexModifier("edit stream", 0, "modify stream");
    // 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 stream", output);
}