assertNull(msg, writeLock);
msg = "Releasing read locks: lock should be invalid.";
print(msg);
readLock1.release();
assertTrue( msg, ! readLock1.isValid() );
readLock2.release();
assertTrue( msg, ! readLock2.isValid() );
msg = "Attempting to create a write lock for the entity: should succeed.";