@Test
    void testConstructors() {
        new PhotometricInterpreterFloat(0, 1);
        new PhotometricInterpreterFloat(1, 0);

        assertThrows(IllegalArgumentException.class, () -> new PhotometricInterpreterFloat(null), "Constructor failed to detect null arguments");

        assertThrows(IllegalArgumentException.class, () -> new PhotometricInterpreterFloat(0.1f, 0.1f),
                "Constructor failed to detect bad-range argument values");

    }
Provides a unit test for the TIFF photometric interpreter used for mapping floating-point values to a color palette.
src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PhotometricInterpreterFloatTest.java