private static boolean areAssertionsEnabled() {
        boolean enabled = false;
        assert enabled = true; // Note: intentional side effect.

        return enabled;
    }
Tests whether assertions are enabled.

@return true if enabled, otherwise false
jme3-examples/src/main/java/jme3test/light/TestIssue2209.java