newResolve.setFile(new File("test/java/org/apache/ivy/ant/ivy-simple2.xml"));
newResolve.setResolveId("testWithResolveId");
newResolve.execute();
// test the properties
Project project = resolve.getProject();
assertEquals("apache2", project.getProperty("ivy.organisation"));
assertEquals("apache2", project.getProperty("ivy.organisation.testWithResolveId"));
assertEquals("resolve-simple2", project.getProperty("ivy.module"));
assertEquals("resolve-simple2", project.getProperty("ivy.module.testWithResolveId"));
assertEquals("1.1", project.getProperty("ivy.revision"));
assertEquals("1.1", project.getProperty("ivy.revision.testWithResolveId"));
assertEquals("true", project.getProperty("ivy.deps.changed"));
assertEquals("true", project.getProperty("ivy.deps.changed.testWithResolveId"));
assertEquals("default", project.getProperty("ivy.resolved.configurations"));
assertEquals("default",
project.getProperty("ivy.resolved.configurations.testWithResolveId"));
// test the references
assertNotNull(project.getReference("ivy.resolved.report"));
assertNotNull(project.getReference("ivy.resolved.report.testWithResolveId"));
assertNotNull(project.getReference("ivy.resolved.descriptor"));
assertNotNull(project.getReference("ivy.resolved.descriptor.testWithResolveId"));
assertNotNull(project.getReference("ivy.resolved.configurations.ref"));
assertNotNull(project.getReference("ivy.resolved.configurations.ref.testWithResolveId"));
}