main.change(single.getName(), DeploymentStages.CLASSLOADER);
assertEquals(expected, deployer.getUndeployedUnits());
assertEquals(DeploymentStages.CLASSLOADER, main.getDeploymentStage(single.getName()));
main.undeploy(single);
assertEquals(DeploymentStages.NOT_INSTALLED, main.getDeploymentStage(single.getName()));
assertEquals(expected, deployer.getDeployedUnits());
assertEquals(expected, deployer.getUndeployedUnits());
try
{