@Test
public void testExampleFromHomepage_advancedExample_firstImprovement() throws Exception {

    // select the modifier
    Modifier myModifier = new RegexModifier("edit stream", 0, "modify stream");
    // test: does not support other whitespace characters
    assertNotEquals("modify\tstream", modify("edit\tstream", myModifier));
    // test: does not support new line characters
    assertNotEquals("modify\nstream", modify("edit\nstream", myModifier));
    // first improvement
    Modifier myModifier1 = new RegexModifier("edit\\sstream", Pattern.DOTALL, "modify stream");
    // test: supports other whitespace characters
    assertEquals("modify stream", modify("edit\tstream", myModifier1));
    // test: supports new line characters
    assertEquals("modify stream", modify("edit\nstream", myModifier1));
}