@Test
public void testEncodeBigInteger() {

	BigInteger test = new BigInteger("100102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f", 16);
	String expected = "a0100102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f";
	byte[] encoderesult = RLP.encode(test);
	assertEquals(expected, Hex.toHexString(encoderesult));
	
	byte[] decodeResult = (byte[]) RLP.decode(encoderesult, 0).getDecoded();
	assertEquals(test, new BigInteger(1,  decodeResult));
}