StreamUtils.copyStream( bundleStream, jarOutputStream, true );
container.start();
ServiceReference[] registeredServices = container.getFramework().getRegisteredServices();
assertNotNull( registeredServices );
Bundle serviceConsumerBundle = container.getBundles()[1];
<BUG>BundleContext bundleContext = serviceConsumerBundle.getBundleContext();
assertThat( serviceConsumerBundle.getState(), is( Bundle.ACTIVE ) );
assertThat( (String) serviceConsumerBundle.getHeaders().get( Constants.BUNDLE_SYMBOLICNAME ), is( expectedBundleSymbolicName ) );</BUG>
ServiceReference[] hostServices = bundleContext.getServiceReferences(
ExampleHostService.class.getName(), null );

StreamUtils.copyStream( bundleStream, jarOutputStream, true );
container.start();
ServiceReference[] registeredServices = container.getFramework().getRegisteredServices();
assertNotNull( registeredServices );
Bundle serviceConsumerBundle = container.getBundles()[1];
BundleContext bundleContext = serviceConsumerBundle.getBundleContext();
assertThat( (String) serviceConsumerBundle.getHeaders().get( Constants.BUNDLE_SYMBOLICNAME ), is( expectedBundleSymbolicName ) );
assertThat( serviceConsumerBundle.getState(), is( Bundle.ACTIVE ) );
ServiceReference[] hostServices = bundleContext.getServiceReferences(
ExampleHostService.class.getName(), null );
