@Override
    public void update() {
        super.update();
        n++;
        if (n > 10) {
            lights.test8.setValue(999999);
            lights.test13.setValue(111);
            lightsBO2.update(lights);
        }
    }
This is an example of UBO usage and an unit test for the Struct Buffer Object.
If everything works as expected, a green square should appear, if not the square will be red.

RenderDOC can be used to see the UBO on the gpu.
jme3-examples/src/main/java/jme3test/material/TestUBO.java