### Question:
ReflectionUtil { public static boolean isAssignableFrom(Type assignableFromType, Class<?> clazz) { if (assignableFromType == null || clazz == null) { return false; } if (assignableFromType instanceof Class<?>) { Class<?> assignAbleFromClazz = (Class<?>) assignableFromType; return assignAbleFromClazz.isAssignableFrom(clazz); } else { ParameterizedType parameterizedType = (ParameterizedType) assignableFromType; return ((Class<?>) parameterizedType.getRawType()).isAssignableFrom(clazz); } } private  ReflectionUtil(); static T convertValueMapValue(ValueMap valueMap, String name, Type declaredType); static T convertValueMapValue(InheritanceValueMap valueMap, String name, Type declaredType); static T[] toArray(Collection<T> c, T[] a); static T[] toArray(Collection<T> c, Class klass); static T[] toArray(Collection<T> c); static boolean isArray(Type declaredType); static boolean isArray(Class<?> clazz); static boolean isCollectionType(Type declaredType); static boolean isCollectionType(Class<?> collectionType); static boolean isSetType(Type declaredType); static boolean isSetType(Class<?> collectionType); static boolean isListType(Type declaredType); static boolean isListType(Class<?> collectionType); static Class<?> getClassOrGenericParam(Type type); static boolean isAssignableFrom(Type assignableFromType, Class<?> clazz); static boolean hasGenericParameter(Type type); static Class<?> getGenericParameter(Type type); static Class<?> getGenericParameter(Type type, int index); static Object castStringValue(String allowedValue);  }### Answer:
@Test public void test_isAssignableFrom() { Field numberField = FieldUtils.getDeclaredField(ReflectionUtilTest.class, "numberField"); boolean isAssignableFrom = isAssignableFrom(numberField.getGenericType(), Integer.class); assertTrue(isAssignableFrom); }