@Test
public void testConstant() {

  assertEquals("foo",
      Parsers.constant("foo").followedBy(Scanners.string("bar")).parse("bar", mode));
  assertEquals("foo", Parsers.constant("foo").toString());
}