Buggy code:
@ Test public void testCircularReferencesWithNotAllowed ( ) { } @ Test public void testCircularReferencesWithWrapping ( ) { } @ Test public void testCircularReferencesWithWrappingAndRawInjectionAllowed ( ) { } @ Test public void testFactoryReferenceCircle ( ) { } @ Test public void testFactoryReferenceWithDoublePrefix ( ) { } @ Test public void testComplexFactoryReferenceCircle ( ) { } @ Test ( expected = BeanCreationException . class ) public void noSuchFactoryBeanMethod ( ) { } @ Test public void testInitMethodIsInvoked ( ) throws Exception { } @ Test public void testInitMethodThrowsException ( ) { } @ Test public void testNoSuchInitMethod ( ) throws Exception { } @ Test public void testInitializingBeanAndInitMethod ( ) throws Exception { } @ Test public void testInitializingBeanAndSameInitMethod ( ) throws Exception { } @ Test public void testDefaultLazyInit ( ) throws Exception { } @ Test ( expected = BeanDefinitionStoreException . class ) public void noSuchXmlFile ( ) throws Exception { } @ Test ( expected = BeanDefinitionStoreException . class ) public void invalidXmlFile ( ) throws Exception { } @ Test ( expected = UnsatisfiedDependencyException . class ) public void unsatisfiedObjectDependencyCheck ( ) throws Exception { } @ Test ( expected = UnsatisfiedDependencyException . class ) public void unsatisfiedSimpleDependencyCheck ( ) throws Exception { } @ Test public void testSatisfiedObjectDependencyCheck ( ) throws Exception { } @ Test public void testSatisfiedSimpleDependencyCheck ( ) throws Exception { } @ Test ( expected = UnsatisfiedDependencyException . class ) public void unsatisfiedAllDependencyCheck ( ) throws Exception { } @ Test public void testSatisfiedAllDependencyCheck ( ) throws Exception { } @ Test public void testAutowire ( ) throws Exception { } @ Test public void testAutowireWithParent ( ) throws Exception { } private void doTestAutowire ( DefaultListableBeanFactory xbf ) throws Exception { } @ Test public void testAutowireWithDefault ( ) throws Exception { } @ Test public void testAutowireByConstructor ( ) throws Exception { } @ Test public void testAutowireByConstructorWithSimpleValues ( ) throws Exception { } @ Test public void testRelatedCausesFromConstructorResolution ( ) { } @ Test public void testConstructorArgResolution ( ) { } @ Test public void testPrototypeWithExplicitArguments ( ) { } @ Test public void testConstructorArgWithSingleMatch ( ) { } @ Test ( expected = BeanCreationException . class ) public void throwsExceptionOnTooManyArguments ( ) throws Exception { } @ Test ( expected = UnsatisfiedDependencyException . class ) public void throwsExceptionOnAmbiguousResolution ( ) throws Exception { } @ Test public void testDependsOn ( ) { } @ Test public void testDependsOnInInnerBean ( ) { } @ Test public void testDependenciesThroughConstructorArguments ( ) { } @ Test public void testDependenciesThroughConstructorArgumentAutowiring ( ) { } @ Test public void testDependenciesThroughConstructorArgumentsInInnerBean ( ) { } @ Test public void testDependenciesThroughProperties ( ) { } @ Test public void testDependenciesThroughPropertiesWithInTheMiddle ( ) { } @ Test public void testDependenciesThroughPropertyAutowiringByName ( ) { } @ Test public void testDependenciesThroughPropertyAutowiringByType ( ) { } @ Test public void testDependenciesThroughPropertiesInInnerBean ( ) { } private void doTestDependencies ( ClassPathResource resource , int nrOfHoldingBeans ) { } @ Test public void testClassNotFoundWithDefaultBeanClassLoader ( ) { } @ Test public void testClassNotFoundWithNoBeanClassLoader ( ) { } @ Test public void testResourceAndInputStream ( ) throws IOException { } @ Test public void testClassPathResourceWithImport ( ) { } @ Test public void testUrlResourceWithImport ( ) { } @ Test public void testFileSystemResourceWithImport ( ) throws URISyntaxException { } @ Test ( expected = BeanDefinitionStoreException . class ) public void recursiveImport ( ) { } @ Test public void methodInjectedBeanMustBeOfSameEnhancedCglibSubclassTypeAcrossBeanFactories ( ) { } @ Test public void lookupOverrideMethodsWithSetterInjection ( ) { } private void lookupOverrideMethodsWithSetterInjection ( BeanFactory xbf , String beanName , boolean singleton ) { OverrideOneMethod oom = ( ( OverrideOneMethod ) ( xbf . getBean ( beanName ) ) ) ; if ( singleton ) { assertSame ( oom , xbf . getBean ( beanName ) ) ; } else { assertNotSame ( oom , xbf . getBean ( beanName ) ) ; } TestBean jenny1 = oom . getPrototypeDependency ( ) ; assertEquals ( "Jenny" , jenny1 . getName ( ) ) ; TestBean jenny2 = oom . getPrototypeDependency ( ) ; assertEquals ( "Jenny" , jenny2 . getName ( ) ) ; assertNotSame ( jenny1 , jenny2 ) ; <START_BUG> TestBean jenny3 = oom . invokesOverriddenMethodOnSelf ( ) ; <END_BUG> assertEquals ( "Jenny" , jenny3 . getName ( ) ) ; assertNotSame ( jenny1 , jenny3 ) ; TestBean dave1 = oom . protectedOverrideSingleton ( ) ; assertEquals ( "David" , dave1 . getName ( ) ) ; TestBean dave2 = oom . protectedOverrideSingleton ( ) ; assertEquals ( "David" , dave2 . getName ( ) ) ; assertSame ( dave1 , dave2 ) ; } @ Test public void testReplaceMethodOverrideWithSetterInjection ( ) { } @ Test public void lookupOverrideOneMethodWithConstructorInjection ( ) { } @ Test public void testRejectsOverrideOfBogusMethodName ( ) { } @ Test public void serializableMethodReplacerAndSuperclass ( ) throws Exception { } @ Test public void testInnerBeanInheritsScopeFromConcreteChildDefinition ( ) { } @ Test public void testConstructorArgWithSingleSimpleTypeMatch ( ) { } @ Test public void testConstructorArgWithDoubleSimpleTypeMatch ( ) { } @ Test public void testDoubleBooleanAutowire ( ) { } @ Test public void testDoubleBooleanAutowireWithIndex ( ) { } @ Test public void testLenientDependencyMatching ( ) { } @ Test public void testLenientDependencyMatchingFactoryMethod ( ) { } @ Test public void testNonLenientDependencyMatching ( ) { } @ Test public void testNonLenientDependencyMatchingFactoryMethod ( ) { } @ Test public void testJavaLangStringConstructor ( ) { } @ Test public void testCustomStringConstructor ( ) { } @ Test public void testPrimitiveConstructorArray ( ) { } @ Test public void testIndexedPrimitiveConstructorArray ( ) { } @ Test public void testStringConstructorArrayNoType ( ) { } @ Test public void testStringConstructorArrayNoTypeNonLenient ( ) { } @ Test public void testWithDuplicateName ( ) throws Exception { } @ Test public void testWithDuplicateNameInAlias ( ) throws Exception { } @ Test public void testOverrideMethodByArgTypeAttribute ( ) { } @ Test public void testOverrideMethodByArgTypeElement ( ) { }

Fix:
TestBean jenny3 = oom . invokesOverridenMethodOnSelf ( ) ;