@Test
public void testQuantityDecode() {

    assertThat(Numeric.decodeQuantity("0x0"), equalTo(BigInteger.valueOf(0L)));
    assertThat(Numeric.decodeQuantity("0x400"), equalTo(BigInteger.valueOf((1024L))));
    assertThat(Numeric.decodeQuantity("0x0"), equalTo(BigInteger.valueOf((0L))));
    assertThat(Numeric.decodeQuantity(
            "0x7fffffffffffffff"), equalTo(BigInteger.valueOf((Long.MAX_VALUE))));
    assertThat(Numeric.decodeQuantity("0x99dc848b94efc27edfad28def049810f"),
            equalTo(new BigInteger("204516877000845695339750056077105398031")));
}