diff --git a/test/org/mockito/AnnotationsAreCopiedFromMockedTypeTest.java b/test/org/mockito/AnnotationsAreCopiedFromMockedTypeTest.java
index <HASH>..<HASH> 100644
--- a/test/org/mockito/AnnotationsAreCopiedFromMockedTypeTest.java
+++ b/test/org/mockito/AnnotationsAreCopiedFromMockedTypeTest.java
@@ -60,6 +60,11 @@ public class AnnotationsAreCopiedFromMockedTypeTest {
 
         return new AnnotatedElement() {
             @Override
+            public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) {
+                return getAnnotation(annotationClass) != null;
+            }
+
+            @Override
             @SuppressWarnings("unchecked")
             public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
                 for (Annotation firstParamAnnotation : firstParamAnnotations) {
Makes test compatible with earlier JDK version