TypeReference implements Comparable<TypeReference<T>> { @Override public String toString() { return getType().toString(); } protected  TypeReference(); Type getType(); @Override int compareTo(@Nullable TypeReference<T> object); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString();  }
@Test public void test_toString() { assertThat(ref.toString(), equalTo(String.class.toString())); }