public static Class<?> getGenericClass(Class<?> cls) {
        return getGenericClass(cls, 0);
    }
@Test
    void testGetGenericClass() {
        assertThat(ReflectUtils.getGenericClass(Foo1.class), sameInstance(String.class));
    }