// sorter does not throw circular dependency, circular dependencies are handled at resolve time only
// because circular dependencies are more complicated to evaluate than just a callstack comparison
public void testCircularDependency() throws Exception {
Ivy ivy = new Ivy();
ivy.configureDefault();
md[0].addDependency(new DefaultDependencyDescriptor(mrid4, false));
toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[2], md[1], md[3]}));
// the sorted array may begin by any of the modules since there is a circular dependency
// in this case, the result is the following
DefaultModuleDescriptor[] sorted = new DefaultModuleDescriptor[] {