private static Node buildTestSceneGraph() {
        Node root       = new Node("Root");

        Node n1         = new Node("N1");
        Node n11        = new Node("N11");
        Node n111       = new Node("N111");
        Geometry g112   = new Geometry("G112");

        Node n2         = new Node("N2");
        Node n21        = new Node("N21");
        Node n211       = new Node("N211");
        Geometry g212   = new Geometry("G212");

        root.attachChild(n1);
        n1.attachChild(n11);
        n11.attachChild(n111);
        n11.attachChild(g112);

        root.attachChild(n2);
        n2.attachChild(n21);
        n21.attachChild(n211);
        n21.attachChild(g212);

        /* Graph:
                Root
                    N1
                        N11
                            N111
                            G112
                    N2
                        N21
                            N211
                            G212
        */

        return root;
    }
Tests for traversal order when using SceneGraphVisitor
with Spatial.depthFirstTraversal() and Spatial.breadthFirstTraversal().

Related: Pull Request #1012 at GitHub

@author 1000ml/FennelFetish (https://github.com/FennelFetish)
jme3-core/src/test/java/com/jme3/scene/SceneGraphTraversalTest.java