assertEquals("chain", rmr.getResolver().getName());
assertEquals("2", rmr.getResolver().getName()); assertEquals("chain", rmr.getArtifactResolver().getName());
    public void testDual() throws Exception {        ChainResolver chain = new ChainResolver();        chain.setName("chain");        chain.setIvy(_ivy);        chain.setDual(true);        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("chain", rmr.getResolver().getName());    }