@Test
    void testInterpretPixel() {
        for (int i = 0; i < 256; i++) {
            final int lowTest = i / 32 * 32;
            final int argb = imageBuilder.getRgb(i, i);
            final int b = argb & 0xff;
            assertEquals(b, lowTest, "Invalid conversion for level " + i);
        }

        // nothing should match the i=256 case.
        // The last entry in the palette has values
        // in the range 224.0/256.0 <= value < 256.0/256.0. So when it
        // was rendered, there was not palette entry that matched it,
        // and the corresponding pixel was set to zero.
        int argb = imageBuilder.getRgb(256, 256);
        assertEquals(argb, 0, "Invalid upper-bound test");

        // Now inspect the banded palette case
        argb = bandedImageBuilder.getRgb(0, 0);
        assertEquals(Color.gray.getRGB(), argb, "Invalid mapping of NaN");
        argb = bandedImageBuilder.getRgb(50, 10);
        assertEquals(green.getRGB(), argb, "Invalid mapping of green range");
        argb = bandedImageBuilder.getRgb(150, 10);
        assertEquals(Color.white.getRGB(), argb, "Invalid mapping of white range");
        argb = bandedImageBuilder.getRgb(250, 10);
        assertEquals(orange.getRGB(), argb, "Invalid mapping of orange range");
    }
Test of interpretPixel method, of class PhotometricInterpreterFloat.
src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PhotometricInterpreterFloatTest.java