Buggy code:
public abstract class SubsystemTest extends IntegrationTest { protected static class SubsystemTestEventHandler implements EventHandler { private final List < Event > events = new ArrayList < Event > ( ) ; public synchronized void clear ( ) { } public synchronized Event get ( ) { } public synchronized void handleEvent ( Event event ) { } public synchronized Event poll ( ) throws InterruptedException { } public synchronized Event poll ( long timeout ) throws InterruptedException { } public synchronized int size ( ) { } } @ Configuration public static Option [ ] configuration ( ) { <START_BUG> Option [ ] options = CoreOptions . options ( mavenBundle ( "org.ops4j.pax.logging" , "pax-logging-api" ) , mavenBundle ( "org.ops4j.pax.logging" , "pax-logging-service" ) , mavenBundle ( "org.apache.felix" , "org.apache.felix.configadmin" ) , mavenBundle ( "org.ops4j.pax.url" , "pax-url-mvn" ) , CoreOptions . systemProperty ( "org.ops4j.pax.logging.DefaultServiceLog.level" ) . value ( "DEBUG" ) , CoreOptions . systemProperty ( "org.osgi.framework.bsnversion" ) . value ( "multiple" ) , mavenBundle ( "org.eclipse.osgi" , "services" ) . version ( "3.3.0-v20110523" ) , mavenBundle ( "org.eclipse.equinox" , "region" ) . version ( "1.0.0.v20110518" ) , mavenBundle ( "org.apache.aries.testsupport" , "org.apache.aries.testsupport.unit" ) , mavenBundle ( "org.apache.aries.application" , "org.apache.aries.application.api" ) , mavenBundle ( "org.apache.aries" , "org.apache.aries.util" ) , mavenBundle ( "org.apache.aries.application" , "org.apache.aries.application.utils" ) , mavenBundle ( "org.apache.felix" , "org.apache.felix.bundlerepository" ) , mavenBundle ( "org.eclipse.equinox" , "coordinator" ) , mavenBundle ( "org.eclipse.equinox" , "org.eclipse.equinox.event" ) , mavenBundle ( "org.apache.aries.subsystem" , "org.apache.aries.subsystem.api" ) , mavenBundle ( "org.apache.aries.subsystem" , "org.apache.aries.subsystem.core" ) , mavenBundle ( "org.apache.aries.subsystem" , "org.apache.aries.subsystem.executor" ) , PaxRunnerOptions . rawPaxRunnerOption ( "config" , "classpath:ss-runner.properties" ) , CoreOptions . equinox ( ) . version ( "3.8.0.v20110621" ) ) ; <END_BUG> options = updateOptions ( options ) ; return options ; } protected final SubsystemTest . SubsystemTestEventHandler subsystemEvents = new SubsystemTest . SubsystemTestEventHandler ( ) ; protected final SubsystemTest . SubsystemTestEventHandler subsystemInternalEvents = new SubsystemTest . SubsystemTestEventHandler ( ) ; protected Subsystem rootSubsystem ; private ServiceRegistration < Repository > repositoryReg ; private ServiceRegistration < EventHandler > subsystemEventsReg ; private ServiceRegistration < EventHandler > subsystemInternalEventsReg ; public void setUp ( ) { } public void tearDown ( ) { } protected void assertChild ( Subsystem parent , Subsystem child ) { } protected void assertChildren ( Subsystem parent , Collection < Subsystem > children ) { } protected void assertConstituents ( int size , Subsystem subsystem ) { } protected void assertEvent ( Subsystem subsystem , Subsystem . State state , SubsystemConstants . EventType type , Event event ) { } protected void assertDirectory ( Subsystem subsystem ) { } protected void assertNotDirectory ( Subsystem subsystem ) { } protected void assertEvent ( Subsystem subsystem , Subsystem . State state , SubsystemConstants . EventType type , Event event , Throwable throwable ) { } protected void assertId ( Subsystem subsystem ) { } protected void assertId ( Long id ) { } protected void assertLocation ( String expected , String actual ) { } protected void assertLocation ( String expected , Subsystem subsystem ) { } protected void assertNotChild ( Subsystem parent , Subsystem child ) { } protected void assertParent ( Subsystem expected , Subsystem subsystem ) { } protected void assertState ( State expected , State actual ) { } protected void assertState ( EnumSet < State > expected , State actual ) { } protected void assertState ( State expected , Subsystem subsystem ) { } protected void assertState ( EnumSet < State > expected , Subsystem subsystem ) { } protected Subsystem assertSubsystemLifeCycle ( File file ) throws Exception { } protected void assertSubsystemNotNull ( Subsystem subsystem ) { } protected void assertSymbolicName ( String expected , Subsystem subsystem ) { } protected void assertVersion ( String expected , Subsystem subsystem ) { } protected void assertVersion ( Version expected , Subsystem subsystem ) { } protected Bundle getSubsystemCoreBundle ( ) { } protected Subsystem installSubsystemFromFile ( Subsystem parent , String fileName ) throws Exception { } protected Subsystem installSubsystemFromFile ( String fileName ) throws Exception { } protected Subsystem installSubsystemFromFile ( Subsystem parent , File file ) throws Exception { } protected Subsystem installSubsystemFromFile ( File file ) throws Exception { } protected Subsystem installSubsystem ( String location ) throws Exception { } protected Subsystem installSubsystem ( String location , InputStream content ) throws Exception { } protected Subsystem installSubsystem ( Subsystem parent , String location ) throws Exception { } protected Subsystem installSubsystem ( Subsystem parent , String location , InputStream content ) throws Exception { } protected void startSubsystem ( Subsystem subsystem ) throws Exception { } protected void stopSubsystem ( Subsystem subsystem ) throws Exception { } protected void uninstallSubsystem ( Subsystem subsystem ) throws Exception { } }

Fix:
Option [ ] options = CoreOptions . options ( mavenBundle ( "org.ops4j.pax.logging" , "pax-logging-api" ) , mavenBundle ( "org.ops4j.pax.logging" , "pax-logging-service" ) , mavenBundle ( "org.apache.felix" , "org.apache.felix.configadmin" ) , mavenBundle ( "org.ops4j.pax.url" , "pax-url-mvn" ) , CoreOptions . systemProperty ( "org.ops4j.pax.logging.DefaultServiceLog.level" ) . value ( "DEBUG" ) , CoreOptions . systemProperty ( "org.osgi.framework.bsnversion" ) . value ( "multiple" ) , mavenBundle ( "org.eclipse.osgi" , "services" ) . version ( "3.3.0-v20110523" ) , mavenBundle ( "org.eclipse.equinox" , "region" ) . version ( "1.0.0.v20110518" ) , mavenBundle ( "org.apache.aries.testsupport" , "org.apache.aries.testsupport.unit" ) , mavenBundle ( "org.apache.aries.application" , "org.apache.aries.application.api" ) , mavenBundle ( "org.apache.aries" , "org.apache.aries.util" ) , mavenBundle ( "org.apache.aries.application" , "org.apache.aries.application.utils" ) , mavenBundle ( "org.apache.felix" , "org.apache.felix.bundlerepository" ) , mavenBundle ( "org.eclipse.equinox" , "coordinator" ) , mavenBundle ( "org.eclipse.equinox" , "org.eclipse.equinox.event" ) , mavenBundle ( "org.apache.aries.subsystem" , "org.apache.aries.subsystem.api" ) , mavenBundle ( "org.apache.aries.subsystem" , "org.apache.aries.subsystem.core" ) , mavenBundle ( "org.apache.aries.subsystem" , "org.apache.aries.subsystem.executor" ) , PaxRunnerOptions . rawPaxRunnerOption ( "config" , "classpath:ss-runner.properties" ) , CoreOptions . equinox ( ) . version ( "3.8.0-SNAPSHOT" ) ) ;