we have tests that cover this. for jackrabbit we simply rely on validation inside jackrabbit