@Test public void require_NameProviders_before_SearcherNodes() { NameProvider nameProvider = createDummyNameProvider(100); ComponentNode componentNode = new ComponentNode<>(createFakeComponentA("a"), 1); addNodes(nameProvider, componentNode); assertEquals(nameProvider, pop()); assertEquals(componentNode, 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();  }