@Test
public void scanWithAxeReturnsCorrectResult() throws ViewChangedException {

  when(axeRunnerFactoryMock.createAxeRunner()).thenReturn(axeMock);
  when(axeContextFactoryMock.createAxeContext(accessibilityNodeInfoMock, screenshotMock))
      .thenReturn(axeContextMock);
  when(axeMock.run(axeContextMock)).thenReturn(axeResultMock);
  Assert.assertEquals(
      testSubject.scanWithAxe(accessibilityNodeInfoMock, screenshotMock), axeResultMock);
}