### Question:
TypeUtils { public static Type getArrayType(Type componentType) { Utils.checkNotNull(componentType, "componentType"); if (componentType instanceof Class<?>) { return ClassUtils.getArrayType((Class<?>) componentType); } return Types.genericArrayType(componentType); } 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(expected = NullPointerException.class) public void getArrayTypeWithNull() { TypeUtils.getArrayType(null); }
@Test public void getArrayTypeWithClass() { assertEquals(Integer[].class, TypeUtils.getArrayType(Integer.class)); }
@Test public void getArrayTypeWithTypeVariable() { assertEquals(Types.genericArrayType(Types.typeVariable(declaration, "T")), TypeUtils.getArrayType(Types.typeVariable(declaration, "T"))); }
@Test public void getArrayTypeWithGenericArrayType() { assertEquals(Types.genericArrayType(Types.genericArrayType(Integer.class)), TypeUtils.getArrayType(Types.genericArrayType(Integer.class))); }
@Test public void getArrayTypeWithParameterizedType() { assertEquals(Types.genericArrayType(Types.parameterizedType(List.class, String.class)), TypeUtils.getArrayType(Types.parameterizedType(List.class, String.class))); }
@Test public void getArrayTypeWithWildcardType() { assertEquals(Types.genericArrayType(Types.unboundedWildcardType()), TypeUtils.getArrayType(Types.unboundedWildcardType())); }