@Test
public void testEmptyParseError() {

  EmptyParseError error = new EmptyParseError(1, "foo");
  assertEquals(1, error.getIndex());
  assertEquals("foo", error.getEncountered());
  assertNull(error.getUnexpected());
  assertNull(error.getFailureMessage());
  assertEquals(0, error.getExpected().size());
}