@Test public void require_SearcherNodes_ordered_by_insertion_order() { int priority = 0; ComponentNode a = new ComponentNode<>(createFakeComponentB("1"), priority++); ComponentNode b = new ComponentNode<>(createFakeComponentA("2"), priority++); ComponentNode c = new ComponentNode<>(createFakeComponentA("03"), priority++); addNodes(a, b, c); assertEquals(a, pop()); assertEquals(b, pop()); assertEquals(c, pop()); }
public Node pop() { return nodes.poll(); }
OrderedReadyNodes { public Node pop() { return nodes.poll(); } }
OrderedReadyNodes { public Node pop() { return nodes.poll(); }  }
OrderedReadyNodes { public Node pop() { return nodes.poll(); }  void add(Node node); Node pop(); boolean isEmpty(); }
OrderedReadyNodes { public Node pop() { return nodes.poll(); }  void add(Node node); Node pop(); boolean isEmpty();  }