ArmArtifactDeployer implements ArtifactDeployer { public void redeployApplication() throws DeploymentException { log.info("Found " + getApplicationMetadata().toString() + ". Redeploying application..."); client.redeployApplication(getApplicationId(), getApplicationMetadata()); if (!deployment.getSkipDeploymentVerification()) { checkApplicationHasStarted(); } } ArmArtifactDeployer(Deployment deployment, DeployerLog log); protected  ArmArtifactDeployer(Deployment deployment, ArmClient client, DeployerLog log); ApplicationMetadata getApplicationMetadata(); boolean isFailIfNotExists(); @Override void deployDomain(); @Override void undeployDomain(); @Override void deployApplication(); @Override void undeployApplication(); void redeployApplication(); Integer getApplicationId(); DeploymentVerification getDeploymentVerification();  }
@Test public void redeployApplicationTest() throws DeploymentException { armArtifactDeployerSpy.redeployApplication(); verify(clientMock).redeployApplication(FAKE_APPLICATION_ID, metadataMock); verify(armArtifactDeployerSpy).checkApplicationHasStarted(); verify(clientMock, never()).deployApplication(metadataMock); verify(clientMock, never()).undeployApplication(metadataMock); }