@Test
    void testSetValue() {
        final AbstractTiffRasterData instance = new TiffRasterDataInt(width, height);
        for (int y = 0; y < height; y++) {
            for (int x = 0; x < width; x++) {
                final int index = y * width + height;
                instance.setValue(x, y, index + 0.4f);
                int test = (int) instance.getValue(x, y);
                assertEquals(index, test, "Set/get value test failed");
                instance.setIntValue(x, y, index);
                test = instance.getIntValue(x, y);
                assertEquals(index, test, "Set/get int value test failed");
            }
        }
    }
Test of setValue method, of class TiffRasterData.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffRasterDataIntTest.java