AxeDeviceFactory { public AxeDevice createAxeDevice(AccessibilityNodeInfo rootNode) { DisplayMetrics displayMetrics = displayMetricsSupplier.get(); String compoundVersion = Build.VERSION.RELEASE + " API Level " + Build.VERSION.SDK_INT; DeviceConfig deviceConfig = deviceConfigFactory.getDeviceConfig(rootNode); return new AxeDevice( displayMetrics.density, deviceConfig.deviceName, compoundVersion, displayMetrics.heightPixels, displayMetrics.widthPixels); } AxeDeviceFactory(
      DeviceConfigFactory deviceConfigFactory, Supplier<DisplayMetrics> displayMetricsSupplier); AxeDevice createAxeDevice(AccessibilityNodeInfo rootNode);  }
@Test public void axeDeviceIsNotNull() { Assert.assertNotNull(testSubject.createAxeDevice(rootNodeMock)); }