chain.setIvy(_ivy);
    public void testResolveOrder() throws Exception {        ChainResolver chain = new ChainResolver();        MockResolver[] resolvers = new MockResolver[] {                MockResolver.buildMockResolver("1", false, null),                 MockResolver.buildMockResolver("2", true, null),                 MockResolver.buildMockResolver("3", true, null)            };        for (int i = 0; i < resolvers.length; i++) {            chain.add(resolvers[i]);        }        assertResolversSizeAndNames(chain, resolvers.length);                        DefaultDependencyDescriptor dd = new DefaultDependencyDescriptor(ModuleRevisionId.newInstance("org","mod", "rev"), false);        ResolvedModuleRevision rmr = chain.getDependency(dd, _data);        assertNotNull(rmr);        assertEquals("2", rmr.getResolver().getName());        assertEquals(Arrays.asList(new DependencyDescriptor[] {dd}), resolvers[0].askedDeps);        assertEquals(Arrays.asList(new DependencyDescriptor[] {dd}), resolvers[1].askedDeps);        assertTrue(resolvers[2].askedDeps.isEmpty());    }