testDependencyTree(new Bundle[]{G, H, F, E, D, J, C, B, A, I}, new Bundle[]{F, D, J, B, E, A,
H, I, G, C});
}
public void testInversedForest() throws Exception {
DependencyMockBundle A = new DependencyMockBundle("A");
DependencyMockBundle B = new DependencyMockBundle("B");
DependencyMockBundle C = new DependencyMockBundle("C");
DependencyMockBundle D = new DependencyMockBundle("D");
DependencyMockBundle E = new DependencyMockBundle("E");
DependencyMockBundle F = new DependencyMockBundle("F");
DependencyMockBundle G = new DependencyMockBundle("G");
DependencyMockBundle H = new DependencyMockBundle("H");
DependencyMockBundle I = new DependencyMockBundle("I");
DependencyMockBundle J = new DependencyMockBundle("J");
// C -> B -> A, E -> D -> B
B.setDependentOn(new Bundle[]{A});
C.setDependentOn(new Bundle[]{B});
D.setDependentOn(new Bundle[]{B});
E.setDependentOn(new Bundle[]{D});
// Sets dependency G -> F, H -> F
G.setDependentOn(new Bundle[]{F});
H.setDependentOn(new Bundle[]{F});
// Sets dependency J -> I
J.setDependentOn(new Bundle[]{I});
testDependencyTree(new Bundle[]{F, A, B, D, I, J, E, H, G, C}, new Bundle[]{F, D, J, B, E, A,
H, I, G, C});
}