@@ -0,0 +1,1163 @@
+package atg.tools.dynunit.hamcrest;%0A%0Aimport org.hamcrest.Factory;%0Aimport org.hamcrest.FeatureMatcher;%0Aimport org.hamcrest.Matcher;%0A%0Aimport java.lang.annotation.Annotation;%0A%0Aimport static org.hamcrest.object.IsCompatibleType.typeCompatibleWith;%0A%0A/**%0A * Simple Hamcrest feature matcher that provides matching against annotation types.%0A *%0A * @author msicker%0A * @version 1.0.0%0A */%0Apublic class IsAnnotated%3CA extends Annotation%3E%0A        extends FeatureMatcher%3CA, Class%3CA%3E%3E %7B%0A%0A    protected IsAnnotated(final Matcher%3C? super Class%3CA%3E%3E subMatcher) %7B%0A        super(subMatcher, %22is annotated%22, %22Annotated%22);%0A    %7D%0A%0A    @Override%0A    @SuppressWarnings(%22unchecked%22)%0A    protected Class%3CA%3E featureValueOf(final A actual) %7B%0A        return (Class%3CA%3E) actual.annotationType();%0A    %7D%0A%0A    @Factory%0A    public static %3CT extends Annotation%3E Matcher%3CT%3E annotated(final T annotation) %7B%0A        return new IsAnnotated%3CT%3E(typeCompatibleWith(annotation.annotationType()));%0A    %7D%0A%0A    @Factory%0A    public static %3CT extends Annotation%3E Matcher%3CT%3E annotated(final Class%3C? extends Annotation%3E annotationType) %7B%0A        return new IsAnnotated%3CT%3E(typeCompatibleWith(annotationType));%0A    %7D%0A%7D%0A

Add experimental annotation Hamcrest matcher.