Set<Class<? extends Annotation>> types = new HashSet<Class<? extends Annotation>>();
types.add(TestAnnotation.class);
ByteCodeFilter byteCodeFilter = new ByteCodeFilter(types);
// Mock the visitor for verification
ClassVisitor classVisitor = Mockito.mock(ClassVisitor.class);
// Run finder
WebClassesFinder finder = new WebClassesFinder(servletContext, classLoader, filter, byteCodeFilter);
finder.findClasses(classVisitor);