public void testRemoveDeployers() throws Exception
{
DeployerClient main = createMainDeployer();
assertEmpty(getDeployers(main));
Deployer deployer1 = new TestSimpleDeployer("1");
Deployer deployer2 = new TestSimpleDeployer("2");
HashSet<Deployer> expected = new HashSet<Deployer>();
expected.add(deployer1);
expected.add(deployer2);
addDeployer(main, deployer1);
addDeployer(main, deployer2);
assertEquals(expected, getDeployers(main));
Deployer notPresent = new TestSimpleDeployer();
removeDeployer(main, notPresent);
assertEquals(expected, getDeployers(main));
removeDeployer(main, deployer1);
expected.remove(deployer1);