// verify that the module in the default cache doesn't exist
assertEquals("Default cache is not empty", cache.list().length, 0);
// verify the artifact does exist in the non-default cache.
CacheManager nonDefaultManager = ivy.getCacheManager(cache2);
assertTrue(TestHelper.getArchiveFileInCache(nonDefaultManager, "org1", "mod1.1", "1.0",
"mod1.1", "jar", "jar").exists());
assertTrue(nonDefaultManager.getResolvedIvyFileInCache(resolvedModule).exists());
assertTrue(nonDefaultManager.getResolvedIvyPropertiesInCache(resolvedModule).exists());
assertNotNull(nonDefaultManager.getSavedArtifactOrigin((Artifact) report.getArtifacts()
.get(0)));
} finally {
// delete the non-default cache
Delete del = new Delete();
del.setProject(new Project());