assertEquals(new HashSet(Arrays.asList(new String[] {"compile", "runtime", "master"})), new HashSet(Arrays.asList(dds[0].getDependencyConfigurations("optional"))));
assertEquals(new HashSet(Arrays.asList(new String[] {"compile(*)", "runtime(*)", "master(*)"})), new HashSet(Arrays.asList(dds[0].getDependencyConfigurations("optional"))));
    public void testOptional() throws Exception {        ModuleDescriptor md = PomModuleDescriptorParser.getInstance().parseDescriptor(new Ivy(), getClass().getResource("test-optional.pom"), false);        assertNotNull(md);                assertEquals(ModuleRevisionId.newInstance("fr.jayasoft", "test", "1.0"), md.getModuleRevisionId());        assertTrue(Arrays.asList(md.getConfigurationsNames()).contains("optional"));                DependencyDescriptor[] dds = md.getDependencies();        assertNotNull(dds);        assertEquals(2, dds.length);        assertEquals(ModuleRevisionId.newInstance("commons-logging", "commons-logging", "1.0.4"), dds[0].getDependencyRevisionId());        assertEquals(new HashSet(Arrays.asList(new String[] {"optional"})), new HashSet(Arrays.asList(dds[0].getModuleConfigurations())));        assertEquals(new HashSet(Arrays.asList(new String[] {"compile", "runtime", "master"})), new HashSet(Arrays.asList(dds[0].getDependencyConfigurations("optional"))));                        assertEquals(ModuleRevisionId.newInstance("cglib", "cglib", "2.0.2"), dds[1].getDependencyRevisionId());        assertEquals(new HashSet(Arrays.asList(new String[] {"compile", "runtime"})), new HashSet(Arrays.asList(dds[1].getModuleConfigurations())));        assertEquals(new HashSet(Arrays.asList(new String[] {"master", "compile"})), new HashSet(Arrays.asList(dds[1].getDependencyConfigurations("compile"))));        assertEquals(new HashSet(Arrays.asList(new String[] {"runtime"})), new HashSet(Arrays.asList(dds[1].getDependencyConfigurations("runtime"))));    }