### Question:
AnnotationResolver { public static boolean isAnnotationOfType(final Annotation annotation, final Class<?> type) { return new TypeAnnotationFilter(annotation).matches(type); }  static boolean isAnnotationOfType(final Annotation annotation,
                                             final Class<?> type); static boolean isAnnotationContainer(final Class<? extends Annotation> annotationType); static List<Annotation> findAllAnnotations(final Class<?> cls); static List<T> findAllAnnotationsByType(final Method method,
                                                                          final Class<T> annotationType); static List<T> findAllAnnotationsByType(final Class<?> cls,
                                                                          final Class<T> annotationType); static boolean isAnnotatedWith(final Method method,
                                                                 final Class<A> annotation); static boolean isAnnotatedWith(final Class<?> component,
                                                                 final Class<A> annotation);  }### Answer:
@Test public void shouldTestIfAnnotationIsOfType() { AnnotationResolver.isAnnotationOfType(() -> TestAnnotation.class, TestAnnotation.class); }