@Test
public void onImageAvailableIgnoresImagesWithInvalidPixelStrides() {

  // pixelStride should be the number of bytes per pixel; our input should always be in ARGB_8888
  // format, so it should be fixed at 4. But if it's not, we shouldn't crash.
  pixelStrideStub = 5;
  setupMocksToCreateBitmap();
  testSubject.onImageAvailable(imageReaderMock);
  verify(bitmapMock, times(0)).copyPixelsFromBuffer(imagePlaneStubBuffer);
  verify(bitmapConsumerMock, times(0)).accept(bitmapMock);
}