@Test
public void isArchiveDeployedTest() {

    DeploymentTopology deploymentTopology = new DeploymentTopology();
    deploymentTopology.setId("id");
    deploymentTopology.setDeployed(false);
    deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("toto", "2.0.0")));
    alienMonitorDao.save(deploymentTopology);
    deploymentTopology.setId("id2");
    deploymentTopology.setDeployed(true);
    deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("tata", "1.0.0")));
    alienMonitorDao.save(deploymentTopology);
    deploymentTopology.setId("id3");
    deploymentTopology.setDeployed(true);
    deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("toto", "1.0.0")));
    alienMonitorDao.save(deploymentTopology);
    Assert.assertFalse(deploymentService.isArchiveDeployed("toto", "2.0.0"));
    deploymentTopology.setId("id");
    deploymentTopology.setDeployed(true);
    deploymentTopology.setDependencies(Sets.newHashSet(new CSARDependency("toto", "2.0.0")));
    alienMonitorDao.save(deploymentTopology);
    Assert.assertTrue(deploymentService.isArchiveDeployed("toto", "2.0.0"));
}