chain.setIvy(_ivy);
    public void testReturnFirst() throws Exception {        ChainResolver chain = new ChainResolver();        chain.setReturnFirst(true);        MockResolver[] resolvers = new MockResolver[] {                MockResolver.buildMockResolver("1", true, new GregorianCalendar(2005, 1, 20).getTime()),                 MockResolver.buildMockResolver("2", false, null),                 MockResolver.buildMockResolver("3", true, new GregorianCalendar(2005, 1, 25).getTime()), // younger -> should the one kept                 MockResolver.buildMockResolver("4", false, null),                 MockResolver.buildMockResolver("5", true, new GregorianCalendar(2005, 1, 22).getTime()),                MockResolver.buildMockResolver("6", true, new GregorianCalendar(2005, 1, 18).getTime()),                MockResolver.buildMockResolver("7", false, 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", "latest.integration"), false);        ResolvedModuleRevision rmr = chain.getDependency(dd, _data);        assertNotNull(rmr);        assertEquals("1", rmr.getResolver().getName());        List ddAsList = Arrays.asList(new DependencyDescriptor[] {dd});        for (int i = 1; i < resolvers.length; i++) {            assertTrue(resolvers[i].askedDeps.isEmpty());        }    }