Token { public Object value() { return value; } 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 testValue() { assertEquals("value", new Token(1, 2, "value").value()); }