### Question:
Token { @Override public String toString() { return format("%s %s", getToken().toString(), range); } Token();  Token(T token, int start, int end); T getToken(); int getStart(); int getEnd(); @Override String toString(); @Override final int hashCode(); @Override final boolean equals(Object obj);  }### Answer:
@Test public void verifyToString() { String object = "test"; Token<?> token = new Token<>(object, 0, 1); assertThat(token.toString(), is("test [0..1]")); }