CharacterReader { void advance() { pos++; } CharacterReader(String input); @Override String toString();  }
@Test public void advance() { CharacterReader r = new CharacterReader("One Two Three"); assertEquals('O', r.consume()); r.advance(); assertEquals('e', r.consume()); }