CloudHubApplicationDeployer implements Deployer { @Override public void undeploy() throws DeploymentException { applicationDeployer.undeployApplication(); } CloudHubApplicationDeployer(Deployment deployment, DeployerLog log); protected  CloudHubApplicationDeployer(CloudHubArtifactDeployer deployer); @Override void deploy(); @Override void undeploy();  }
@Test public void undeployTest() throws DeploymentException { applicationDeployer.undeploy(); verify(artifactDeployerMock).undeployApplication(); verify(artifactDeployerMock, never()).deployApplication(); verify(artifactDeployerMock, never()).undeployDomain(); verify(artifactDeployerMock, never()).deployDomain(); }