userTxn.demoteLock(ln.getNodeId());
checkHeldLocks(userTxn, 1, 0);
// Shouldn't release at operation end
userTxn.operationEnd();
checkHeldLocks(userTxn, 1, 0);
userTxn.releaseLock(ln.getNodeId());
checkHeldLocks(userTxn, 0, 0);
userTxn.commit(Txn.TXN_SYNC);