@Test
public void testIntDecode() {

    assertThat(TypeDecoder.decodeNumeric(
            "0000000000000000000000000000000000000000000000000000000000000000",
            Int64.class
            ),
            is(new Int64(BigInteger.ZERO)));
    assertThat(TypeDecoder.decodeNumeric(
            "0000000000000000000000000000000000000000000000007fffffffffffffff",
            Int64.class
            ),
            is(new Int64(BigInteger.valueOf(Long.MAX_VALUE))));
    assertThat(TypeDecoder.decodeNumeric(
            "fffffffffffffffffffffffffffffffffffffffffffffff88000000000000000",
            Int64.class
            ),
            is(new Int64(BigInteger.valueOf(Long.MIN_VALUE))));
    assertThat(TypeDecoder.decodeNumeric(
            "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
            Int64.class
            ),
            is(new Int64(BigInteger.valueOf(-1))));
    assertThat(TypeDecoder.decodeNumeric(
            "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
            Int256.class
            ),
            is(new Int256(BigInteger.valueOf(-1))));
}