AnnotationReader extends ClassVisitor { public boolean isAnnotationPresent(Class<? extends Annotation> annotation) { String name = annotation.getName(); return annotations.contains(name); } AnnotationReader(); @Override void visit(int paramInt1, int paramInt2, String paramString1, String paramString2,
			String paramString3, String[] paramArrayOfString); @Override AnnotationVisitor visitAnnotation(String paramString, boolean paramBoolean); boolean isAnnotationPresent(Class<? extends Annotation> annotation);  }
@Test public void testIsAnnotationPresent() throws Exception { Assert.assertFalse(annotationReader.isAnnotationPresent(JcrProperty.class)); annotationReader.visitAnnotation("/com/cognifide/slice/mapper/annotation/JcrProperty/", false); Assert.assertTrue(annotationReader.isAnnotationPresent(JcrProperty.class)); }