protected static boolean isValidHexQuantity(String value) {
        if (value == null) {
            return false;
        }

        if (value.length() < 3) {
            return false;
        }

        if (!value.startsWith(HEX_PREFIX)) {
            return false;
        }

        return value.matches("0[xX][0-9a-fA-F]+");
    }
@Test
    void testIsValidHexQuantity() {

        assertEquals(true, Numeric.isValidHexQuantity("0x0"));
        assertEquals(true, Numeric.isValidHexQuantity("0x9"));
        assertEquals(true, Numeric.isValidHexQuantity("0x123f"));
        assertEquals(true, Numeric.isValidHexQuantity("0x419E"));
        assertEquals(true, Numeric.isValidHexQuantity("0x975d"));
        assertEquals(true, Numeric.isValidHexQuantity("0xDC449C1C16BA0"));
        assertEquals(true, Numeric.isValidHexQuantity("0x419E"));

        assertEquals(false, Numeric.isValidHexQuantity("419E"));
        assertEquals(false, Numeric.isValidHexQuantity("0419E"));
        assertEquals(false, Numeric.isValidHexQuantity("0x419Erf"));
        assertEquals(false, Numeric.isValidHexQuantity("0x419fg"));
    }