@Test
    void testGetValue() {
        for (int y = 0; y < height; y++) {
            for (int x = 0; x < width; x++) {
                final int index = y * width + x;
                final int test = (int) raster.getValue(x, y);
                assertEquals(index, test, "Get into source data test failed at (" + x + "," + y + ")");
                final int iTest = raster.getIntValue(x, y);
                assertEquals(index, iTest, "Get into source data test failed at (" + x + "," + y + ")");
            }
        }
    }
Test of getValue method, of class TiffRasterData.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffRasterDataTest.java