### Question:
GenericType { public String toString() { return String.valueOf(type); } GenericType(Class<?> declaringClass, Type type); Class<?> getRawType(); String toString(); GenericType getArrayElementType(); GenericType getElementType(); GenericType getListElementType(); GenericType getMapKeyType(); GenericType getMapValueType(); GenericType getSetElementType(); boolean isArray(); boolean isList(); boolean isMap(); boolean isSet();  }### Answer:
@Test public void testToString() throws Exception { GenericType type = new GenericType(Sub.class, Sub.class.getField("set").getGenericType()); assertEquals("java.util.Set<T>", type.toString()); }