private Define def(String name, VarType type, Object value) {
        Define d = new Define();
        d.name = name;
        d.type = type;
        d.value = value;
        return d;
    }
Validates {@link MatParam}s.

@author Kirill Vainer
jme3-core/src/test/java/com/jme3/material/MaterialMatParamTest.java