### Question:
RegisteredAnnotatedTypes { @SafeVarargs public final Stream<Class<?>> annotatedWithAnyOf(Class<? extends Annotation>... annotationClasses) { return Stream.of(annotationClasses).flatMap(this::annotatedWith).distinct(); } RegisteredAnnotatedTypes(Collection<Class<?>> allTypes); static final RegisteredAnnotatedTypes ofStream(Stream<Class<?>> allTypes); static final RegisteredAnnotatedTypes ofClasses(Collection<Class<?>> allTypes); Stream<Class<?>> subtypeOf(Class<?> annotationClass); Stream<Class<?>> annotatedWith(Class<? extends Annotation> annotationClass); @SafeVarargs final Stream<Class<?>> annotatedWithAnyOf(Class<? extends Annotation>... annotationClasses); void forEachAnnotatedType(Class<? extends Annotation> annotationClass, Consumer<? super Class<?>> type); Predicate<? super Class<?>> without(Class<? extends Annotation> annotationClass); @Override String toString();  }### Answer:
@Test void shouldFindAnyOfTheGivenAnnotatedTypes() { long notAnnotatedTypes = 1; long allTypes = RegisteredAnnotatedTypesTestFixture.getAllTestClasses().size(); long foundTypes = registered.annotatedWithAnyOf(TypeAnnotation.class, FieldAnnotation.class, MethodAnnotation.class).count(); assertEquals(allTypes - notAnnotatedTypes, foundTypes, registered::toString); }