@Test
public void testCountPixels_all_pixels_invalid() throws Exception {

    final PixelCounter pixelCounter = new PixelCounter();
    final Array mask = Array.factory(new byte[][]{
            {0b0001, 0b0010, 0b0011},
            {0b0100, 0b0101, 0b0110},
            {0b0111, 0b1000, 0b1001}
    });
    assertEquals(9, pixelCounter.count(mask));
}