    @Test
    public void testAncestorGenericClass() {

        Assertions.assertThrows(RuntimeException.class, () -> GenericUtils.ancestorGenericClass(AAA.class));
        Assertions.assertSame(LinkedList.class, GenericUtils.ancestorGenericClass(BBB.class));
        Assertions.assertSame(LinkedList.class, GenericUtils.ancestorGenericClass(CCC.class));
        Assertions.assertSame(LinkedList.class, GenericUtils.ancestorGenericClass(DDD.class));
    }