@Override
    public void simpleInitApp() {
        if (!areAssertionsEnabled()) {
            throw new IllegalStateException(
                    "For a valid test, assertions must be enabled.");
        }

        DirectionalLight dl = new DirectionalLight();
        rootNode.addLight(dl);

        DirectionalLightShadowRenderer dlsr
                = new DirectionalLightShadowRenderer(assetManager, 4_096, 3);
        dlsr.setLight(dl);
        viewPort.addProcessor(dlsr);

        Node player = (Node) assetManager.loadModel("Models/Oto/Oto.mesh.xml");
        player.setShadowMode(RenderQueue.ShadowMode.Cast);
        rootNode.attachChild(player);
    }
Initializes this application, adding Oto, a light, and a shadow renderer.
jme3-examples/src/main/java/jme3test/light/TestIssue2209.java