assertEquals( list( one, fakeTwo, requiresTwo ), ordered );
}
@Test
public void complexRuntimeDependencies() {
EmptyAcrossModule one = new EmptyAcrossModule( "one" );
EmptyAcrossModule two = new EmptyAcrossModule( "two" );
two.addRuntimeDependency( "five" );
EmptyAcrossModule three = new EmptyAcrossModule( "three" );
three.addRuntimeDependency( "one" );
three.addRuntimeDependency( "six" );
EmptyAcrossModule four = new EmptyAcrossModule( "four" );
four.addRuntimeDependency( "three" );
EmptyAcrossModule five = new EmptyAcrossModule( "five" );
five.addRuntimeDependency( "three" );
five.addRuntimeDependency( "four" );
EmptyAcrossModule six = new EmptyAcrossModule( "six" );
six.addRuntimeDependency( "one" );
Collection<AcrossModule> added = list( one, two, three, four, five, six );
Collection<AcrossModule> ordered = order( added );
assertEquals( list( one, six, three, four, five, two ), ordered );