### Question:
ReflectionUtils { public static Method findEntryMethod(Object ruleClass, Class entryAnnotation) throws NoSuchMethodException { Method[] methodArr = ruleClass.getClass().getDeclaredMethods(); for (Method method : methodArr) { if (method.isAnnotationPresent(entryAnnotation)) { return method; } } throw new NoSuchMethodException("unable to find the execute method"); }  static Class<?> findAssociateClass(String ruleKey); static Class<?> findFixClass(String ruleKey); static Class<?> findAssociateClass(Class annotationClass, String hintPackage); static Method findAssociatedMethod(Object ruleClass, String methodName); static Method findEntryMethod(Object ruleClass, Class entryAnnotation); static Set<ReactorShell> findEventHandlers(String eventName);  }### Answer:
@Test public void findEntryMethod2() throws NoSuchMethodException { assertThatThrownBy(() -> ReflectionUtils.findEntryMethod(PacmanFix.class, PacmanFix.class)).isInstanceOf(Exception.class); }