@Test
public void getMethods() {

    Method[] result = cache.getMethods(String.class);
    Method[] methods = ReflectionUtil.getAllMethodsOfClass(String.class);
    assertArrayEquals(result, methods);
    methodSize = result.length;
    result = cache.getMethods(AnnotationClass.class, AnnotationClass.Test.class);
    methods =
            ReflectionUtil.getAnnotationMethods(AnnotationClass.class, AnnotationClass.Test.class).toArray(
                    new Method[0]);
    assertArrayEquals(result, methods);
}