### Question:
ReflectionUtils { public static Class<?> findFixClass(String ruleKey) throws InstantiationException, IllegalAccessException, ClassNotFoundException { Reflections reflections = new Reflections("com.tmobile"); Set<Class<?>> allRules = reflections.getTypesAnnotatedWith(PacmanFix.class); for (Class<?> ruleClass : allRules) { PacmanFix rule = ruleClass.getAnnotation(PacmanFix.class); if (rule.key().equals(ruleKey)) { return ruleClass; } } throw new ClassNotFoundException("cannot find class associated to rule"); }  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 findFixClass1() throws InstantiationException, IllegalAccessException, ClassNotFoundException { assertThatThrownBy(() -> ReflectionUtils.findFixClass("ruleKey")).isInstanceOf(Exception.class); }