private void checkFilteredLights(int expected) {
        geom.updateGeometricState();
        filter.setCamera(cam); // setCamera resets the intersection cache
        list.clear();
        filter.filterLights(geom, list);
        assert list.size() == expected;
    }
Test light filtering for various light types.

@author Kirill Vainer
jme3-core/src/test/java/com/jme3/light/LightFilterTest.java