expect(origin.isBound(baz())).andReturn(true).anyTimes();
expect(bindingCreator.create(bar())).andReturn(binding);
expect(binding.getDependencies()).andReturn(TestUtils.dependencyList(
new Dependency(bar(), baz(), true, false, SOURCE)));
control.replay();
DependencyExplorerOutput output = dependencyExplorer.explore(origin);
DependencyGraph graph = output.getGraph();
assertContentsAnyOrder(graph.getDependenciesOf(foo()), new Dependency(foo(), bar(), SOURCE));
assertEmpty(graph.getDependenciesTargeting(foo()));
assertContentsAnyOrder(graph.getDependenciesOf(bar()),
new Dependency(bar(), baz(), true, false, SOURCE));
assertContentsAnyOrder(graph.getDependenciesTargeting(bar()),