ScreenshotAxeImage extends AxeImage { @Override public AxeColor pixel(int x, int y) { AxeColor color = new AxeColor(this.screenshot.getPixel(x, y)); return color; } ScreenshotAxeImage(
      Bitmap screenshot, ByteArrayOutputStreamProvider byteArrayOutputStreamProvider); @Override AxeRect frame(); @Override AxeColor pixel(int x, int y); @Override String toBase64Png();  }
@Test public void pixelReturnsCorrectColor() { int givenX = 10; int givenY = 20; int colorIntStub = 100; when(bitmapMock.getPixel(givenX, givenY)).thenReturn(colorIntStub); AxeColor returnedAxeColor = testSubject.pixel(givenX, givenY); Assert.assertEquals(returnedAxeColor, new AxeColor(colorIntStub)); }