private void createScene(Node rootNode, AssetManager assetManager) {
                // Create materials
                Material mat = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
                mat.setFloat("Shininess", 1f);
                mat.setBoolean("UseMaterialColors", true);
                mat.setColor("Ambient", ColorRGBA.Black);
                mat.setColor("Diffuse", ColorRGBA.DarkGray);
                mat.setColor("Specular", ColorRGBA.White.mult(0.6f));

                Material matSoil = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
                matSoil.setBoolean("UseMaterialColors", true);
                matSoil.setColor("Ambient", ColorRGBA.Black);
                matSoil.setColor("Diffuse", ColorRGBA.Black);
                matSoil.setColor("Specular", ColorRGBA.Black);

                // Create teapot
                teapot = assetManager.loadModel("Models/Teapot/Teapot.obj");
                teapot.setName("Teapot");
                teapot.setLocalScale(3);
                teapot.setMaterial(mat);
                rootNode.attachChild(teapot);

                // Create ground
                Geometry soil = new Geometry("soil", new Box(50, 1, 50));
                soil.setLocalTranslation(0, -1, 0);
                soil.setMaterial(matSoil);
                rootNode.attachChild(soil);

                // Add light
                DirectionalLight light = new DirectionalLight();
                light.setDirection(new Vector3f(0, -1, 0).normalizeLocal());
                light.setColor(ColorRGBA.White.mult(1.5f));
                rootNode.addLight(light);
            }
This test creates a scene with a teapot following a motion path.
jme3-screenshot-tests/src/test/java/org/jmonkeyengine/screenshottests/animation/TestMotionPath.java