assertTrue(_ivy.getResolvedIvyFileInCache(_cache, mrid).exists());
assertTrue(ivy.getResolvedIvyFileInCache(_cache, mrid).exists());
    public void testLatest() throws Exception {        // mod1.4 depends on latest mod1.2        ResolveReport report = _ivy.resolve(new File("test/repositories/1/org1/mod1.4/ivys/ivy-1.0.1.xml").toURL(),                null, new String[] {"default"}, _cache, null, true);        assertNotNull(report);        ModuleDescriptor md = report.getModuleDescriptor();        assertNotNull(md);        ModuleRevisionId mrid = ModuleRevisionId.newInstance("org1", "mod1.4", "1.0.1");        assertEquals(mrid, md.getModuleRevisionId());                assertTrue(_ivy.getResolvedIvyFileInCache(_cache, mrid).exists());                // dependencies        ModuleRevisionId depId = ModuleRevisionId.newInstance("org1", "mod1.2", "2.2");        ConfigurationResolveReport crr = report.getConfigurationReport("default");        assertNotNull(crr);        assertEquals(1, crr.getDownloadReports(depId).length);                File r = new File(_cache, XmlReportOutputter.getReportFileName(mrid.getModuleId(), "default"));        assertTrue(r.exists());        final boolean[] found = new boolean[] {false};        SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();        saxParser.parse(r, new DefaultHandler() {            public void startElement(String uri,String localName,String qName,org.xml.sax.Attributes attributes) throws SAXException {                if ("artifact".equals(qName) && "mod1.2".equals(attributes.getValue("name"))) {                    found[0] = true;                }            }        });        assertTrue(found[0]);                assertTrue(_ivy.getIvyFileInCache(_cache, depId).exists());        assertTrue(_ivy.getArchiveFileInCache(_cache, "org1", "mod1.2", "2.2", "mod1.2", "jar", "jar").exists());    }