TypeReference implements Comparable<TypeReference<T>> { public Type getType() { return type; } 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_getType() { assertThat(ref.getType(), equalTo(String.class)); }