}
}
public void testWiringOnServiceAssemblyConnections() throws Exception {
ServiceAssemblyDesc descriptor = DescriptorFactory.buildDescriptor(DescriptorFactory.class.getResource("serviceAssembly.xml")).getServiceAssembly();
final Storage storage = createMock(Storage.class);
expect(storage.get("state", State.Shutdown.name())).andReturn(State.Shutdown.name());
storage.put("state", State.Started.name());
storage.save();
storage.put("state", State.Stopped.name());
storage.save();
replay(storage);
final List<ServiceRegistration> wires = new LinkedList<ServiceRegistration>();
ServiceAssembly sa = new ServiceAssemblyImpl(null, descriptor, new ArrayList<ServiceUnitImpl>(), storage, new AssemblyReferencesListener(), false) {
@Override