@Test public void consumeToAny() {

    CharacterReader r = new CharacterReader("One &bar; qux");
    assertEquals("One ", r.consumeToAny('&', ';'));
    assertTrue(r.matches('&'));
    assertTrue(r.matches("&bar;"));
    assertEquals('&', r.consume());
    assertEquals("bar", r.consumeToAny('&', ';'));
    assertEquals(';', r.consume());
    assertEquals(" qux", r.consumeToAny('&', ';'));
}