/**
  * Test {@link javax.jcr.lock.Lock#refresh()} on a released lock.
  *
  * @throws Exception
  */
 public void testRefreshNotLive() throws Exception {
   // release the lock
   lockMgr.unlock(lockedNode.getPath());
   // refresh
   try {
     lock.refresh();
     fail("Refresh on a lock that is not alive must fail");
   } catch (LockException e) {
     // success
   }
 }
 /**
  * Test {@link javax.jcr.lock.Lock#refresh()} on a released lock.
  *
  * @throws Exception
  */
 public void testRefresh() throws RepositoryException {
   // refresh must succeed
   lock.refresh();
 }