@Test
    void testGetColor() {
        final Color cTest = new Color(0xff0000ff);
        PaletteEntryForValue instance = new PaletteEntryForValue(0.0f, cTest);
        Color c0 = instance.getColor(0.0f);
        final int a0 = c0.getRGB();
        assertEquals(0xff0000ff, a0, "Invalid value for 0.0f");
        c0 = instance.getColor(1f);
        assertNull(c0, "Non-null return for invalid target 1.0f");
        c0 = instance.getColor(Float.NaN);
        assertNull(c0, "Non-null return for invalid target 1.0f");
        instance = new PaletteEntryForValue(Float.NaN, cTest);
        c0 = instance.getColor(Float.NaN);
        assertNotNull(c0, "Invalid return for valid target Float.NaN");
        c0 = instance.getColor(1.0f);
        assertNull(c0, "Invalid return for invalid valid target 1.0f");

    }
Test of getColor method, of class PaletteEntryForValue.
src/test/java/org/apache/commons/imaging/formats/tiff/photometricinterpreters/floatingpoint/PaletteEntryForValueTest.java