AgentArtifactDeployer implements ArtifactDeployer { @Override public void undeployDomain() { client.undeployDomain(deployment.getApplicationName()); } AgentArtifactDeployer(Deployment deployment, DeployerLog log); protected  AgentArtifactDeployer(Deployment deployment, AgentClient client); @Override void deployDomain(); @Override void undeployDomain(); @Override void deployApplication(); @Override void undeployApplication(); AgentDeploymentVerification getDeploymentVerification();  }
@Test public void undeployDomainTest() throws DeploymentException { when(deploymentMock.getApplicationName()).thenReturn(DOMAIN_NAME); deployer.undeployDomain(); verify(clientMock).undeployDomain(DOMAIN_NAME); }