@Override
        public void visit(Spatial spatial) {
            namesInOrder.add(spatial.getName());
        }
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