ArmArtifactDeployer implements ArtifactDeployer { public ApplicationMetadata getApplicationMetadata() { return new ApplicationMetadata(deployment.getArtifact(), deployment.getApplicationName(), deployment.getTargetType(), deployment.getTarget()); } 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 getApplicationMetadataTest() throws IOException { File artifactFile = temporaryFolder.newFile(); when(deploymentMock.getArtifact()).thenReturn(artifactFile); when(deploymentMock.getApplicationName()).thenReturn(FAKE_APPLICATION_NAME); TargetType targetType = TargetType.server; when(deploymentMock.getTargetType()).thenReturn(targetType); String target = "target"; when(deploymentMock.getTarget()).thenReturn(target); ApplicationMetadata metadata = armArtifactDeployer.getApplicationMetadata(); assertThat("Artifact file is not the expected", metadata.getFile(), equalTo(artifactFile)); assertThat("Application name is not the expected", metadata.getName(), equalTo(FAKE_APPLICATION_NAME)); assertThat("Target type is not the expected", metadata.getTargetType(), equalTo(targetType)); assertThat("Target is not the expected", metadata.getTarget(), equalTo(target)); }