Buggy code:
public class TestExecutionListenersTests { @ Test public void verifyNumDefaultListenersRegistered ( ) throws Exception { TestContextManager testContextManager = new TestContextManager ( TestExecutionListenersTests . DefaultListenersExampleTestCase . class ) ; <START_BUG> assertEquals ( "Num<seq2seq4repair_space>registered<seq2seq4repair_space>TELs<seq2seq4repair_space>for<seq2seq4repair_space>DefaultListenersExampleTestCase." , 3 , testContextManager . getTestExecutionListeners ( ) . size ( ) ) ; <END_BUG> } @ Test public void verifyNumNonInheritedDefaultListenersRegistered ( ) throws Exception { } @ Test public void verifyNumInheritedDefaultListenersRegistered ( ) throws Exception { } @ Test public void verifyNumListenersRegistered ( ) throws Exception { } @ Test public void verifyNumNonInheritedListenersRegistered ( ) throws Exception { } @ Test public void verifyNumInheritedListenersRegistered ( ) throws Exception { } @ Test public void verifyNumListenersRegisteredViaMetaAnnotation ( ) throws Exception { } @ Test public void verifyNumNonInheritedListenersRegisteredViaMetaAnnotation ( ) throws Exception { } @ Test public void verifyNumInheritedListenersRegisteredViaMetaAnnotation ( ) throws Exception { } @ Test public void verifyNumListenersRegisteredViaMetaAnnotationWithOverrides ( ) throws Exception { } @ Test public void verifyNumListenersRegisteredViaMetaAnnotationWithInheritedListenersWithOverrides ( ) throws Exception { } @ Test public void verifyNumListenersRegisteredViaMetaAnnotationWithNonInheritedListenersWithOverrides ( ) throws Exception { } @ Test ( expected = IllegalStateException . class ) public void verifyDuplicateListenersConfigThrowsException ( ) throws Exception { } static class DefaultListenersExampleTestCase { } @ TestExecutionListeners ( TestExecutionListenersTests . QuuxTestExecutionListener . class ) static class InheritedDefaultListenersExampleTestCase extends TestExecutionListenersTests . DefaultListenersExampleTestCase { } static class SubInheritedDefaultListenersExampleTestCase extends TestExecutionListenersTests . InheritedDefaultListenersExampleTestCase { } @ TestExecutionListeners ( TestExecutionListenersTests . EnigmaTestExecutionListener . class ) static class SubSubInheritedDefaultListenersExampleTestCase extends TestExecutionListenersTests . SubInheritedDefaultListenersExampleTestCase { } @ TestExecutionListeners ( listeners = { TestExecutionListenersTests . QuuxTestExecutionListener . class } , inheritListeners = false ) static class NonInheritedDefaultListenersExampleTestCase extends TestExecutionListenersTests . InheritedDefaultListenersExampleTestCase { } @ TestExecutionListeners ( { TestExecutionListenersTests . FooTestExecutionListener . class , TestExecutionListenersTests . BarTestExecutionListener . class , TestExecutionListenersTests . BazTestExecutionListener . class } ) static class ExampleTestCase { } @ TestExecutionListeners ( TestExecutionListenersTests . QuuxTestExecutionListener . class ) static class InheritedListenersExampleTestCase extends TestExecutionListenersTests . ExampleTestCase { } @ TestExecutionListeners ( listeners = TestExecutionListenersTests . QuuxTestExecutionListener . class , inheritListeners = false ) static class NonInheritedListenersExampleTestCase extends TestExecutionListenersTests . InheritedListenersExampleTestCase { } @ TestExecutionListeners ( listeners = TestExecutionListenersTests . FooTestExecutionListener . class , value = TestExecutionListenersTests . BarTestExecutionListener . class ) static class DuplicateListenersConfigExampleTestCase { } @ TestExecutionListeners ( { TestExecutionListenersTests . FooTestExecutionListener . class , TestExecutionListenersTests . BarTestExecutionListener . class , TestExecutionListenersTests . BazTestExecutionListener . class } ) @ Retention ( RetentionPolicy . RUNTIME ) static @ interface MetaListeners { } @ TestExecutionListeners ( TestExecutionListenersTests . QuuxTestExecutionListener . class ) @ Retention ( RetentionPolicy . RUNTIME ) static @ interface MetaInheritedListeners { } @ TestExecutionListeners ( listeners = TestExecutionListenersTests . QuuxTestExecutionListener . class , inheritListeners = false ) @ Retention ( RetentionPolicy . RUNTIME ) static @ interface MetaNonInheritedListeners { } @ TestExecutionListeners @ Retention ( RetentionPolicy . RUNTIME ) static @ interface MetaListenersWithOverrides { Class < ? extends TestExecutionListener > [ ] listeners ( ) default { TestExecutionListenersTests . FooTestExecutionListener . class , TestExecutionListenersTests . BarTestExecutionListener . class } ; } @ TestExecutionListeners @ Retention ( RetentionPolicy . RUNTIME ) static @ interface MetaInheritedListenersWithOverrides { Class < ? extends TestExecutionListener > [ ] listeners ( ) default TestExecutionListenersTests . QuuxTestExecutionListener . class ; boolean inheritListeners ( ) default true ; } @ TestExecutionListeners @ Retention ( RetentionPolicy . RUNTIME ) static @ interface MetaNonInheritedListenersWithOverrides { Class < ? extends TestExecutionListener > [ ] listeners ( ) default TestExecutionListenersTests . QuuxTestExecutionListener . class ; boolean inheritListeners ( ) default false ; } @ TestExecutionListenersTests . MetaListeners static class MetaExampleTestCase { } @ TestExecutionListenersTests . MetaInheritedListeners static class MetaInheritedListenersExampleTestCase extends TestExecutionListenersTests . MetaExampleTestCase { } @ TestExecutionListenersTests . MetaNonInheritedListeners static class MetaNonInheritedListenersExampleTestCase extends TestExecutionListenersTests . MetaInheritedListenersExampleTestCase { } @ TestExecutionListenersTests . MetaListenersWithOverrides ( listeners = { TestExecutionListenersTests . FooTestExecutionListener . class , TestExecutionListenersTests . BarTestExecutionListener . class , TestExecutionListenersTests . BazTestExecutionListener . class } ) static class MetaWithOverridesExampleTestCase { } @ TestExecutionListenersTests . MetaInheritedListenersWithOverrides ( listeners = { TestExecutionListenersTests . FooTestExecutionListener . class , TestExecutionListenersTests . BarTestExecutionListener . class } ) static class MetaInheritedListenersWithOverridesExampleTestCase extends TestExecutionListenersTests . MetaWithOverridesExampleTestCase { } @ TestExecutionListenersTests . MetaNonInheritedListenersWithOverrides ( listeners = { TestExecutionListenersTests . FooTestExecutionListener . class , TestExecutionListenersTests . BarTestExecutionListener . class , TestExecutionListenersTests . BazTestExecutionListener . class } , inheritListeners = true ) static class MetaNonInheritedListenersWithOverridesExampleTestCase extends TestExecutionListenersTests . MetaInheritedListenersWithOverridesExampleTestCase { } static class FooTestExecutionListener extends AbstractTestExecutionListener { } static class BarTestExecutionListener extends AbstractTestExecutionListener { } static class BazTestExecutionListener extends AbstractTestExecutionListener { } static class QuuxTestExecutionListener extends AbstractTestExecutionListener { } static class EnigmaTestExecutionListener extends AbstractTestExecutionListener { } }

Fix:
assertEquals ( "Num<seq2seq4repair_space>registered<seq2seq4repair_space>TELs<seq2seq4repair_space>for<seq2seq4repair_space>DefaultListenersExampleTestCase." , 4 , testContextManager . getTestExecutionListeners ( ) . size ( ) ) ;