I want to create a util method to be able to create invalid data inside already created nodes. For example, I would like to create a child node with role that is not defined in the concept.
The reason is to check migration scripts on real data that migration is working. Yes, we have migration script tests but they not allowed to create incorrect data (for example, if child was moved from one concept to another).
I know that there is exists deprecated method for this: ownerNode/.addChild(roleName, newChildNode);
But I would like to use not deprecated method with SContainmentLink attribute instead of roleName. But I don't understand how to create a new one.
Util method example:
I will be very thankful for the help.