// add new reference to object
CollectionReference ref_5 = new CollectionReference(null, nameRef);
CollectionReference ref_6 = new CollectionReference(null, nameRef);
tx.begin();
tx.lock(obj_1, Transaction.WRITE);
tx.lock(obj_2, Transaction.WRITE);
obj_1.addReference(ref_5);
obj_2.addReference(ref_6);
tx.commit();
assertNotNull(ref_5.getRefIdentifier());
assertNotNull(ref_6.getRefIdentifier());