RoundRobinLoadBalancedList implements LoadBalancedList<E> { @Override public boolean contains(E item) { Node<E> newNode = new Node<E>(item); return this.allItems.contains(newNode); } RoundRobinLoadBalancedList(); @Override List<Node<E>> getValues(); @Override void clear(); @Override boolean contains(E item); @Override void set(E item, int weight); @Override void remove(E item); @Override int getSize(); int getRemainingSize(); @Override E getNext(); @Override String toString();  }
@Test public void contains() throws Exception { RoundRobinLoadBalancedList<String> list = new RoundRobinLoadBalancedList<String>(); list.set("Item1", 1); list.set("Item2", 1); Assert.assertEquals(true, list.contains("Item1")); Assert.assertEquals(true, list.contains("Item2")); Assert.assertEquals(false, list.contains("Item3")); }