@Test
public void testRemoveAll()
{

   ArrayList<FairQueueTestString> list = new ArrayList<>();
   list.add(new FairQueueTestString("key1", "item1"));
   list.add(new FairQueueTestString("key1", "item2"));
   list.add(new FairQueueTestString("key1", "item7"));
   list.add(new FairQueueTestString("key2", "item4"));
   list.add(new FairQueueTestString("key2", "item5"));
   queue.offer(new FairQueueTestString("key1", "item1"));
   queue.offer(new FairQueueTestString("key1", "item2"));
   queue.offer(new FairQueueTestString("key1", "item3"));
   queue.offer(new FairQueueTestString("key2", "item4"));
   queue.offer(new FairQueueTestString("key2", "item5"));
   Assert.assertEquals(queue.size(), 5);
   Assert.assertEquals(queue.removeAll(list), true);
   Assert.assertEquals(queue.size(), 1);
   ArrayList<FairQueueTestString> list2 = new ArrayList<>();
   list2.add(new FairQueueTestString("key2", "item5"));
   Assert.assertEquals(queue.removeAll(list2), false);
}