public static void main(String[] args) {
        AppSettings sett = new AppSettings(true);
        sett.putBoolean("GraphicsDebug", true);
        sett.setRenderer(AppSettings.LWJGL_OPENGL32);
        TestUBO app = new TestUBO();
        app.setSettings(sett);
        app.setPauseOnLostFocus(false);
        app.start();
    }
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