@Test
public void testNotFollowedBy() {

  assertEquals((Object) 123, INTEGER.notFollowedBy(COMMA).parse("123", mode));
  assertEquals((Object) 123,
      INTEGER.notFollowedBy(COMMA.times(2)).followedBy(COMMA).parse("123,", mode));
  assertFailure(mode, FAILURE.notFollowedBy(FOO), "", 1, 1, "failure");
  assertFailure(mode, INTEGER.notFollowedBy(COMMA), "123,", 1, 4, "unexpected ,.");
}