@Test
void getAllMethods()
{

    Collection<Method> methods = ReflectionUtils.getAllMethods(AllMethodsTestClass.class);
    List<String> methodSignatures = new ArrayList<>();
    for (Method method : methods) {
        methodSignatures.add(method.toString());
    }
    assertThat(methodSignatures, hasItems(
        "public void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestClass.publicMethod()",
        "public void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestSuperClass.publicParentMethod()",
        "void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestClass.packageLevelMethod()",
        "void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestSuperClass.packageLeveLParentMethod()",
        "private void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestClass.privateMethod()",
        "private void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestSuperClass.privateParentMethod()",
        "protected void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestClass.protectedMethod()",
        "protected void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestSuperClass."
            + "protectedParentMethod()",
        "protected void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestClass."
            + "protectedOverridenMethod()"));
    assertThat(methodSignatures, not(hasItems(
        "protected void org.xwiki.component.util.ReflectionUtilsTest$AllMethodsTestSuperClass."
        + "protectedOverridenMethod()")));
}