BundleContext bundleCtx = new MockBundleContext();
String contextPath = "/path";
deployer.setServer(tempServer);
deployer.afterPropertiesSet();
WarDeployment deployment = deployer.createDeployment(bundleCtx.getBundle(), contextPath);
deployment.undeploy();
}
}