assertEquals(LockGrantType.NEW, lockGrant);
checkHeldLocks(userTxn, 1, 0);
// Try demoting, nothing should happen.
try {
userTxn.demoteLock(ln.getNodeId());
fail("exception not thrown on phoney demoteLock");
} catch (AssertionError e){
}
checkHeldLocks(userTxn, 1, 0);
long afterDemotion = mb.getCacheMemoryUsage();