AxeContextFactory { public AxeContext createAxeContext(AccessibilityNodeInfo rootNode, Bitmap screenshot) throws ViewChangedException { AxeView axeView = axeViewsFactory.createAxeViews(rootNode); AxeDevice axeDevice = axeDeviceFactory.createAxeDevice(rootNode); AxeImage axeImage = axeImageFactory.createAxeImage(screenshot); AxeEventStream axeEventStream = new AxeEventStream(); return new AxeContext(axeView, axeDevice, axeImage, axeEventStream); } AxeContextFactory(
      AxeImageFactory axeImageFactory,
      AxeViewsFactory axeViewsFactory,
      AxeDeviceFactory axeDeviceFactory); AxeContext createAxeContext(AccessibilityNodeInfo rootNode, Bitmap screenshot);  }
@Test public void axeContentIsNotNull() throws ViewChangedException { Assert.assertNotNull(testSubject.createAxeContext(rootNodeMock, screenshotMock)); }
@Test public void axeContentHasCorrectProperties() throws ViewChangedException { AxeContext axeContext = testSubject.createAxeContext(rootNodeMock, screenshotMock); Assert.assertEquals(axeContext.screenshot, axeImageMock); Assert.assertEquals(axeContext.axeDevice, axeDeviceMock); Assert.assertEquals(axeContext.axeView, axeViewMock); Assert.assertNotNull(axeContext.axeEventStream); }