checkHeldLocks(userTxn, 1, 0);
long afterDemotion = mb.getCacheMemoryUsage();
assertEquals(afterLock, afterDemotion);
// Make it a write lock, then demote.
lockGrant = userTxn.lock
(ln.getNodeId(), LockType.WRITE,
DbInternal.dbGetDatabaseImpl(db)).
getLockGrant();
assertEquals(LockGrantType.PROMOTION, lockGrant);
long afterWriteLock = mb.getCacheMemoryUsage();