@Test
    public void testOverrides_RemoveBeforeAttach() {
        Node scene = createDummyScene();
        scene.updateGeometricState();

        Node root = new Node("Root Node");
        root.updateGeometricState();

        scene.getChild("A").addMatParamOverride(mpoInt("val", 5));
        validateScene(scene);

        scene.getChild("A").clearMatParamOverrides();
        validateScene(scene);

        root.attachChild(scene);
        validateScene(root);
    }
Validates how {@link MatParamOverride MPOs} work on the scene level.

@author Kirill Vainer
jme3-core/src/test/java/com/jme3/scene/SceneMatParamOverrideTest.java