### Question:
PosToken extends Token<String> { @Override public String toString() { return format("%s [%s]", getToken(), pos); } PosToken(String token, String pos, int start, int end); String getPos(); @Override String toString();  }### Answer:
@Test public void toString_doesntFail() { PosToken token = new PosToken("foo", "NN", 0, 4); token.toString(); }