Buggy code:
, type = Object . class , types = { Object . class } ) , nests = { @ AnnotationUtilsTest . NestAnnotation ( booleanValue = false , booleanValues = { false } , byteValue = 0 , byteValues = { 0 } , charValue = 0 , charValues = { 0 } , doubleValue = 0 , doubleValues = { 0 } , floatValue = 0 , floatValues = { 0 } , intValue = 0 , intValues = { 0 } , longValue = 0 , longValues = { 0 } , shortValue = 0 , shortValues = { 0 } , stooge = AnnotationUtilsTest . Stooge . CURLY , stooges = { AnnotationUtilsTest . Stooge . MOE , AnnotationUtilsTest . Stooge . LARRY , AnnotationUtilsTest . Stooge . SHEMP } , string = "" , strings = { "" } , type = Object [ ] . class , types = { Object [ ] . class } ) , @ AnnotationUtilsTest . NestAnnotation ( booleanValue = false , booleanValues = { false } , byteValue = 0 , byteValues = { 0 } , charValue = 0 , charValues = { 0 } , doubleValue = 0 , doubleValues = { 0 } , floatValue = 0 , floatValues = { 0 } , intValue = 0 , intValues = { 0 } , longValue = 0 , longValues = { 0 } , shortValue = 0 , shortValues = { 0 } , stooge = AnnotationUtilsTest . Stooge . CURLY , stooges = { AnnotationUtilsTest . Stooge . MOE , AnnotationUtilsTest . Stooge . LARRY , AnnotationUtilsTest . Stooge . SHEMP } , string = "" , strings = { "" } , type = Object [ ] . class , types = { Object [ ] . class } ) } , shortValue = 0 , shortValues = { 0 } , stooge = AnnotationUtilsTest . Stooge . SHEMP , stooges = { AnnotationUtilsTest . Stooge . MOE , AnnotationUtilsTest . Stooge . LARRY , AnnotationUtilsTest . Stooge . CURLY } , string = "" , strings = { "" } , type = Object . class , types = { Object . class } ) public Object dummy3 ; @ AnnotationUtilsTest . NestAnnotation ( booleanValue = false , booleanValues = { false } , byteValue = 0 , byteValues = { 0 } , charValue = 0 , charValues = { 0 } , doubleValue = 0 , doubleValues = { 0 } , floatValue = 0 , floatValues = { 0 } , intValue = 0 , intValues = { 0 } , longValue = 0 , longValues = { 0 } , shortValue = 0 , shortValues = { 0 } , stooge = AnnotationUtilsTest . Stooge . CURLY , stooges = { AnnotationUtilsTest . Stooge . MOE , AnnotationUtilsTest . Stooge . LARRY , AnnotationUtilsTest . Stooge . SHEMP } , string = "" , strings = { "" } , type = Object [ ] . class , types = { Object [ ] . class } ) public Object dummy4 ; @ Target ( ElementType . FIELD ) @ Retention ( RetentionPolicy . RUNTIME ) public @ interface TestAnnotation { String string ( ) ; String [ ] strings ( ) ; Class < ? > type ( ) ; Class < ? > [ ] types ( ) ; byte byteValue ( ) ; byte [ ] byteValues ( ) ; short shortValue ( ) ; short [ ] shortValues ( ) ; int intValue ( ) ; int [ ] intValues ( ) ; char charValue ( ) ; char [ ] charValues ( ) ; long longValue ( ) ; long [ ] longValues ( ) ; float floatValue ( ) ; float [ ] floatValues ( ) ; double doubleValue ( ) ; double [ ] doubleValues ( ) ; boolean booleanValue ( ) ; boolean [ ] booleanValues ( ) ; AnnotationUtilsTest . Stooge stooge ( ) ; AnnotationUtilsTest . Stooge [ ] stooges ( ) ; AnnotationUtilsTest . NestAnnotation nest ( ) ; AnnotationUtilsTest . NestAnnotation [ ] nests ( ) ; } public @ interface NestAnnotation { String string ( ) ; String [ ] strings ( ) ; Class < ? > type ( ) ; Class < ? > [ ] types ( ) ; byte byteValue ( ) ; byte [ ] byteValues ( ) ; short shortValue ( ) ; short [ ] shortValues ( ) ; int intValue ( ) ; int [ ] intValues ( ) ; char charValue ( ) ; char [ ] charValues ( ) ; long longValue ( ) ; long [ ] longValues ( ) ; float floatValue ( ) ; float [ ] floatValues ( ) ; double doubleValue ( ) ; double [ ] doubleValues ( ) ; boolean booleanValue ( ) ; boolean [ ] booleanValues ( ) ; AnnotationUtilsTest . Stooge stooge ( ) ; AnnotationUtilsTest . Stooge [ ] stooges ( ) ; } public static enum Stooge { MOE , LARRY , CURLY , JOE , SHEMP ; } private Field field1 ; private Field field2 ; private Field field3 ; private Field field4 ; @ Before public void setup ( ) throws Exception { } @ Test public void testEquivalence ( ) { } @ Test public void testSameInstance ( ) { } @ Test public void testNonEquivalentAnnotationsOfSameType ( ) { } @ Test public void testAnnotationsOfDifferingTypes ( ) { } @ Test public void testOneArgNull ( ) { } @ Test public void testBothArgsNull ( ) { <START_BUG> assertFalse ( AnnotationUtils . equals ( field1 . getAnnotation ( AnnotationUtilsTest . TestAnnotation . class ) , null ) ) ; <END_BUG> } @ Test public void testIsValidAnnotationMemberType ( ) { } @ Test ( timeout = 666 ) public void testGeneratedAnnotationEquivalentToRealAnnotation ( ) throws Exception { } }

Fix:
assertTrue ( AnnotationUtils . equals ( null , null ) ) ;