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