private SpotLightShadowFilter createSpotLightShadowFilter(AssetManager assetManager) {
        SpotLight light = new SpotLight();
        light.setColor(new ColorRGBA(0.8f, 0.8f, 0.8f, 1f));

        SpotLightShadowFilter slsf = new SpotLightShadowFilter(assetManager, 2048);
        slsf.setLight(light);

        return slsf;
    }
Tests serialization and de-serialization of a {@code FilterPostProcessing}.
jme3-core/src/test/java/com/jme3/shadow/FilterPostProcessingTest.java