@Test
    void testGetIntData() {
        for (int y = 0; y < height; y++) {
            for (int x = 0; x < width; x++) {
                final int index = y * width + x;
                final int test = (int) data[index];
                assertEquals(index, test, "Integer array access test failed at (" + x + "," + y + ")");
            }
        }
    }
Test of getData method, of class TiffRasterData.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffRasterDataTest.java