### Question:
TypeUtils { public static Class<?> getRawType(Type type) { return org.apache.commons.lang3.reflect.TypeUtils.getRawType(type, null); } private  TypeUtils(); static boolean isCollection(Type type); static boolean isMap(Type type); static Type getCollectionGeneric(Type type); static Type getMapValueGeneric(Type type); static Class<?> getRawType(Type type);  }### Answer:
@Test void shouldGetProperRawTypeForCollection() { Type type = org.apache.commons.lang3.reflect.TypeUtils.parameterize(List.class, String.class); Class<?> rawType = TypeUtils.getRawType(type); assertThat(rawType).isEqualTo(List.class); }
@Test void shouldGetProperRawTypeForSimpleClass() { Type type = String.class; Class<?> rawType = TypeUtils.getRawType(type); assertThat(rawType).isEqualTo(String.class); }