### Question:
GenericType { public Class<?> getRawType() { return rawType; } 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 testGetRawTypeWithNonParameterizedType() throws Exception { GenericType type = new GenericType(Sub.class, Super.class.getField("regular").getGenericType()); assertEquals(String.class, type.getRawType()); }
@Test public void testGetRawTypeWithParameterizedType() throws Exception { GenericType type = new GenericType(Sub.class, Super.class.getField("set").getGenericType()); assertEquals(Set.class, type.getRawType()); }