@Test
public void buildQueueWithLabelNodes() {

  createChildren();
  when(childNode0.getLabelFor()).thenReturn(childNode1);
  Queue<AccessibilityNodeInfoSorter> queue = testSubject.buildPriorityQueue(rootNode);
  Long rootOrder = Long.MAX_VALUE;
  Long child0Order = (rootOrder - 1) / 2;
  Long child1Order = rootOrder - 1;
  Long grandchildOrder = child0Order - 1;
  verifyAllNodesCreated(rootOrder, child0Order, child1Order, grandchildOrder);
  Assert.assertEquals(queue.size(), 4);
  assertNextQueueItemEquals(queue, grandchildNode, grandchildOrder);
  assertNextQueueItemEquals(queue, childNode0, child0Order);
  assertNextQueueItemEquals(queue, childNode1, child1Order);
  assertNextQueueItemEquals(queue, rootNode, rootOrder);
}