@Test
  public void testDuplicateSuppression() throws Exception {
    DependencyNode root = parse("cycles.txt");

    PreorderNodeListGenerator visitor = new PreorderNodeListGenerator();
    root.accept(visitor);

    assertSequence(visitor.getNodes(), "a", "b", "c", "d", "e");
  }
  @Test
  public void testOrdering() throws Exception {
    DependencyNode root = parse("simple.txt");

    PreorderNodeListGenerator visitor = new PreorderNodeListGenerator();
    root.accept(visitor);

    assertSequence(visitor.getNodes(), "a", "b", "c", "d", "e");
  }