@Test
public void createsAxeViewWithLabeledByNode() throws ViewChangedException {

  when(rootNodeMock.getLabeledBy()).thenReturn(labelNodeMock);
  enqueueNode(labelNodeMock);
  enqueueNode(rootNodeMock);
  AxeView axeView = testSubject.createAxeViews(rootNodeMock);
  Assert.assertNotNull(axeView);
  Assert.assertEquals(axeView, rootViewMock);
  verify(nodeViewBuilderFactoryMock, times(1))
      .createNodeViewBuilder(eq(rootNodeMock), eq(new ArrayList<>()), eq(labelViewMock));
  verify(nodeViewBuilderFactoryMock, times(1))
      .createNodeViewBuilder(eq(labelNodeMock), eq(new ArrayList<>()), eq(null));
}