### Question:
AnnotationUtils { public static Collection<Method> getMethods(Class<?> clazz) { Map<String, Method> returnValue = new HashMap<>(); Class<?> myClass = clazz; for (; myClass != null; ) { for (Method method : myClass.getDeclaredMethods()) { boolean isOverridden = false; for (Method overriddenMethod : returnValue.values()) { if (overriddenMethod.getName().equals(method.getName()) && Arrays.deepEquals(method.getParameterTypes(), overriddenMethod.getParameterTypes())) { isOverridden = true; break; } } if (!isOverridden) { returnValue.put(method.getName(), method); } } myClass = myClass.getSuperclass(); } return returnValue.values(); } private  AnnotationUtils(); @SuppressWarnings("unchecked") static String addXmlRootAnnotation(final String source, final String name); static String addXmlAdaptorAnnotation(final String source, final String returnType, final AdapterWrapper wrapper); static String addXmlElementAnnotation(final String source); static String addXmlAccessNoneAnnotation(final String source); static T getClassAnnotation(final Class<?> clazz, final Class<T> annotationClass); static Collection<Field> getAnnotatedFields(final Class<?> clazz, final Class<? extends Annotation> annotationClass); @SuppressWarnings({"unchecked"}) static Class<T> findClass(final String name); static Collection<Field> getClassFields(Class<?> clazz); static Collection<Method> getMethods(Class<?> clazz); static String addKnownAdapters(final String source); static final Set<String> KNOWN_XML_TYPES; }### Answer:
@Test public void testGetClassMethods() throws Exception { Collection<Method> methods = AnnotationUtils.getMethods(AnnotationUtilsTest.class); assertTrue("Expected at least" + TOTAL_METHODS, methods.size() > TOTAL_METHODS); }