Node root = session.getRootNode();
Node other = root.addNode("other");
other.addMixin("mix:referenceable");
Node src = root.addNode("src");
Node test = src.addNode("test");
test.addMixin("mix:referenceable");
src.setProperty("test", test);
src.setProperty("other", other);
src.setProperty("multi", new Value[]{vf.createValue(test), vf.createValue(other)});
session.save();
session.getWorkspace().copy("/src", "/dest");