ObjectUtils { public static Method getMethod(String methodName, Class<?> clazz) { for(Method method : clazz.getMethods()){ if(method.getName().equals(methodName)){ return method; } } return null; }  static int hashCode(Object ...objects); static boolean equals(Object obj1, Object obj2); static boolean equals(T obj1, T obj2, EqualFunction<T> equalFunction); static Method getMethod(String methodName, Class<?> clazz);  }
@Test public void testGetMethod(){ Method method = ObjectUtils.getMethod("testGetMethod", getClass()); Assert.assertNotNull(method); }