@Test
    void testMapValueToARGB() {

        int argb = pInterp.mapValueToArgb(0.5f);
        int test = imageBuilder.getRgb(128, 128);
        assertEquals(test, argb, "Conflicting results from value-to-ARGB map");

        // pInterp does not define a state for NaN, but bandedInterp does.
        // so test both variations
        argb = pInterp.mapValueToArgb(Float.NaN);
        assertEquals(0, argb, "Non-defined NaN did not return ARGB of zero");

        // to test mappings for special values, use the banded-interpreter
        argb = bandedInterp.mapValueToArgb(Float.NaN);
        test = Color.gray.getRGB();
        assertEquals(test, argb, "Float.NaN mapped to incorrect ARGB");
        argb = bandedInterp.mapValueToArgb(-1f);
        test = Color.gray.getRGB();
        assertEquals(test, argb, "Excluded value mapped to incorrect ARGB");
    }
Test of interpretPixel method, of class PhotometricInterpreterFloat.
src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PhotometricInterpreterFloatTest.java