TestObject object = assembler.module().newObject( TestObject.class );
assertThat( "service is unavailable", object.getService(), CoreMatchers.<Object>nullValue() );
ServiceReference<TestServiceComposite2> serviceRef = assembler.module().findService( TestServiceComposite2.class );
serviceRef.get().configuration().enabled().set( true );
serviceRef.get().save();
object = assembler.module().newObject( TestObject.class );
assertThat( "service is available", object.getService(), CoreMatchers.<Object>notNullValue() );