public void testStopGlobMatchingContainers() throws Exception {
// should stop c2 once
// should not touch d1
containers("c*", "c2");
ContainerImpl c1 = newContainer("c1");
ContainerImpl c2 = newContainer("c2");
ContainerImpl c3 = newContainer("c3");
ContainerImpl d1 = newContainer("d1");
expect(this.fabricService.getContainers()).andReturn(new Container[] { c1, c3, c2, d1 }).once();
expect(this.fabricService.adapt(CuratorFramework.class)).andReturn(this.curatorFramework);
expect(this.fabricService.getContainers()).andReturn(new Container[] { c1, c3, c2, d1 }).once();
this.fabricService.stopContainer(c1, false);
expect(this.fabricService.adapt(CuratorFramework.class)).andReturn(this.curatorFramework);