@Deprecated
    public static String toHexStringWithPrefixSafe(BigInteger value) {
        String result = toHexStringNoPrefix(value);
        if (result.length() < 2) {
            result = Strings.zeros(1) + result;
        }
        return HEX_PREFIX + result;
    }
@Test
    public void testQuantityEncodeLeadingZero() {
        assertEquals(Numeric.toHexStringWithPrefixSafe(BigInteger.valueOf(0L)), ("0x00"));
        assertEquals(Numeric.toHexStringWithPrefixSafe(BigInteger.valueOf(1024L)), ("0x400"));
        assertEquals(
                Numeric.toHexStringWithPrefixSafe(BigInteger.valueOf(Long.MAX_VALUE)),
                ("0x7fffffffffffffff"));
        assertEquals(
                Numeric.toHexStringWithPrefixSafe(
                        new BigInteger("204516877000845695339750056077105398031")),
                ("0x99dc848b94efc27edfad28def049810f"));
    }