@Test
public void recyclesNodesOnRetryFailure() {

  setupViewChangedScenario(false, true);
  int numRetries = 5;
  try {
    testSubject.createAxeViews(rootNodeMock);
    Assert.fail("Expected createAxeViews to throw exception");
  } catch (ViewChangedException e) {
    verify(childNodeMock, times(numRetries + 1)).recycle();
    verify(labelNodeMock, times(numRetries + 1)).recycle();
    verify(rootNodeMock, never()).recycle();
  }
}