For an example, see https://github.com/fluid-project/infusion/blob/master/src/tests/framework-tests/core/js/ModelTransformationTests.js#L84 and referenced on line 259