DefaultDeployer implements Deployer { @Override public void deploy() throws DeploymentException { log.info(String.format("Deploying artifact %s", applicationName)); deployer.deploy(); log.info(String.format("Artifact %s deployed", applicationName)); } DefaultDeployer(Deployment deployment, DeployerLog log);  DefaultDeployer(Deployer deployer, String applicationName, DeployerLog log); @Override void deploy(); @Override void undeploy();  }
@Test public void deployTest() throws DeploymentException { doNothing().when(deployerSpy).deploy(); defaultDeployer.deploy(); verify(deployerSpy, times(1)).deploy(); verify(deployerSpy, times(0)).undeploy(); }