@Override
    public void simpleInitApp() {
        /*
         * Attach a test geometry to the scene.
         */
        Mesh cubeMesh = new Box(1f, 1f, 1f);
        Geometry cubeGeometry = new Geometry("Box", cubeMesh);
        rootNode.attachChild(cubeGeometry);
        /*
         * Apply a test material (with no textures assigned) to the geometry.
         */
        manyTexturesMaterial = new Material(assetManager,
                "jme3test/materials/TestIssue37.j3md");
        manyTexturesMaterial.setName("manyTexturesMaterial");
        cubeGeometry.setMaterial(manyTexturesMaterial);
        numTextures = 0;
        /*
         * Load the test texture.
         */
        String texturePath = "Interface/Logo/Monkey.jpg";
        testTexture = assetManager.loadTexture(texturePath);
    }
Edit this field to change how parameters are assigned (which determines
where the exception is caught): true to use mat param overrides, false to
use ordinary mat params.
jme3-examples/src/main/java/jme3test/renderer/TestIssue37.java