public class DependencyNodeUtilTest
{
@Test
public void testDepthFirstIterator()
{
DependencyNodeBuilder root = DependencyNodeBuilder.create(null, DependencyBuilder
.create("org.jboss.forge.addon:example1:2.0.0-SNAPSHOT"));
DependencyNodeBuilder childOne = DependencyNodeBuilder.create(root,
DependencyBuilder.create("org.jboss.forge.addon:example1-child-one:2.0.0-SNAPSHOT"));
DependencyNodeBuilder childTwo = DependencyNodeBuilder.create(root,
DependencyBuilder.create("org.jboss.forge.addon:example1-child-two:2.0.0-SNAPSHOT"));
DependencyNodeBuilder childOneGrandChildOne = DependencyNodeBuilder.create(childOne,
DependencyBuilder.create("org.jboss.forge.addon:example1-child-one-grandchild-one:2.0.0-SNAPSHOT"));
DependencyNodeBuilder childOneGrandChildTwo = DependencyNodeBuilder.create(childOne,
DependencyBuilder.create("org.jboss.forge.addon:example1-child-one-grandchild-two:2.0.0-SNAPSHOT"));
childOne.getChildren().add(childOneGrandChildOne);
childOne.getChildren().add(childOneGrandChildTwo);
root.getChildren().add(childOne);