Token { public int index() { return ind; } Token(int index, int length, Object value); int length(); int index(); Object value(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testIndex() { assertEquals(1, new Token(1, 2, null).index()); }