/**
  * Tests release method for entry in deleted state.
  *
  * <p>Invoking release on deleted entry should not have any effect on its state.
  */
 public void testReleaseDeleted() {
   delete();
   _queueEntry.release();
   assertTrue(
       "Invoking of release on entry in DELETED state should not have any effect",
       _queueEntry.isDeleted());
 }
 /**
  * Tests release method for entry in acquired state.
  *
  * <p>Entry in state ACQUIRED should be released and its status should be changed to AVAILABLE.
  */
 public void testReleaseAquired() {
   acquire();
   _queueEntry.release();
   assertTrue(
       "Queue entry should be in AVAILABLE state after invoking of release method",
       _queueEntry.isAvailable());
 }
 /**
  * Tests release method for entry in dequeued state.
  *
  * <p>Invoking release on dequeued entry should not have any effect on its state.
  */
 public void testReleaseDequeued() {
   dequeue();
   _queueEntry.release();
   EntryState state = getState();
   assertEquals(
       "Invoking of release on entry in DEQUEUED state should not have any effect",
       QueueEntry.DEQUEUED_STATE,
       state);
 }