module.addServices( FailingDataService.class );
module.addServices( FailingDataService.class );
}
};
Iterable<ServiceReference<DataAccess>> iterable = assembly.module().findServices( DataAccess.class );
for( ServiceReference<DataAccess> service : iterable )
{
assertTrue( "Service should not be Active before accessed", !service.isActive() );
assertTrue( service.get().data().activated );
assertTrue( "Service should be Active after access.", service.isActive() );