### Question:
TypeUtils { public static Class<?> getErasedReferenceType(Type type) { Utils.checkTrue(isReferenceType(type), "type is not a reference type: ", type); return (Class<?>) getErasedType(type); } private  TypeUtils(); static boolean isAssignable(Type supertype, Type type); static boolean isInstance(Type type, Object object); static Type getErasedType(Type type); static Class<?> getErasedReferenceType(Type type); @Deprecated static Class<?> getRawType(Type type); static boolean isArray(Type type); static Type getComponentType(Type type); static Type getArrayType(Type componentType); static boolean isSimpleParameterizedType(Type type, Class<?> rawType); static Type getActualTypeArgument(Type type); static Type getResolvedSuperclass(Type type); static Type[] getResolvedInterfaces(Type type); static String toString(Type type); static String toString(Type type, ClassSerializer serializer); static String toUnqualifiedString(Type type); static String toSimpleString(Type type);  }### Answer:
@Test public void getErasedReferenceTypeWithNull() { assertNull(TypeUtils.getErasedReferenceType(null)); }
@Test public void getErasedReferenceTypeWithClass() { assertEquals(Integer.class, TypeUtils.getErasedReferenceType(Integer.class)); }
@Test public void getErasedReferenceTypeWithClassArray() { assertEquals(Integer[].class, TypeUtils.getErasedReferenceType(Integer[].class)); }
@Test public void getErasedReferenceTypeWithTypeVariable() { assertEquals(Number.class, TypeUtils.getErasedReferenceType(Types.typeVariable(declaration, "T", Number.class, Comparable.class))); }
@Test public void getErasedReferenceTypeWithGenericArrayType() { assertEquals(List[].class, TypeUtils.getErasedReferenceType(valueOf("List<Integer>[]"))); }
@Test public void getErasedReferenceTypeWithParameterizedType() { assertEquals(List.class, TypeUtils.getErasedReferenceType(valueOf("List<Integer>"))); }
@Test(expected = IllegalArgumentException.class) public void getErasedReferenceTypeWithWildcardType() { TypeUtils.getErasedReferenceType(Types.unboundedWildcardType()); }