boolean stillLocked = mgr.isLocked(task);
assertTrue(stillLocked);
TestUtils.endSession(true);
// try to release a lock
boolean lockReleased = mgr.releaseLock(task);
assertTrue(lockReleased);
TestUtils.endSession(true);
// make sure task is not locked
stillLocked = mgr.isLocked(task);