// need a test task to play with
RollerTask task = new TestTask();
// try to acquire a lock
boolean lockAcquired = mgr.acquireLock(task);
assertTrue(lockAcquired);
TestUtils.endSession(true);
// make sure task is locked
boolean stillLocked = mgr.isLocked(task);