### Question:
ResolverUtil { public ResolverUtil<T> findAnnotated(Class<? extends Annotation> annotation, String... packageNames) { if (packageNames == null) { return this; } Test test = new AnnotatedWith(annotation); for (String pkg : packageNames) { find(test, pkg); } return this; }  Set<Class<? extends T>> getClasses(); ClassLoader getClassLoader(); void setClassLoader(ClassLoader classloader); ResolverUtil<T> findImplementations(Class<?> parent, String... packageNames); ResolverUtil<T> findAnnotated(Class<? extends Annotation> annotation, String... packageNames); ResolverUtil<T> find(Test test, String packageName);  }### Answer:
@Test void findAnnotated() { ResolverUtil<Object> resolverUtil = new ResolverUtil<>(); resolverUtil.findAnnotated(CacheNamespace.class, this.getClass().getPackage().getName()); Set<Class<?>> classSets = resolverUtil.getClasses(); assertEquals(classSets.size(), 1); classSets.forEach(c -> assertNotNull(c.getAnnotation(CacheNamespace.class))); }