@Test
public void recyclesNodesOnSuccess() throws ViewChangedException {

  when(rootNodeMock.getChildCount()).thenReturn(1);
  when(rootNodeMock.getChild(0)).thenReturn(childNodeMock);
  when(rootNodeMock.getLabeledBy()).thenReturn(labelNodeMock);
  enqueueNode(labelNodeMock);
  enqueueNode(childNodeMock);
  enqueueNode(rootNodeMock);
  AxeView axeView = testSubject.createAxeViews(rootNodeMock);
  Assert.assertNotNull(axeView);
  Assert.assertEquals(axeView, rootViewMock);
  verify(childNodeMock, times(1)).recycle();
  verify(labelNodeMock, times(1)).recycle();
  verify(rootNodeMock, never()).recycle();
}