package org.ethereum.core;

import static org.junit.Assert.*;

import java.math.BigInteger;

import org.junit.Test;
import org.spongycastle.util.encoders.Hex;

public class AccountStateTest {

	@Test
	public void testGetEncoded() {
		String expected = "f83e809a010000000000000000000000000000000000000000000000000080a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470";
		AccountState acct = new AccountState(BigInteger.ZERO, BigInteger.valueOf(2).pow(200));
		assertEquals(expected, Hex.toHexString(acct.getEncoded()));
	}

}

@@ -250,11 +250,9 @@
  = %22
-f83
+d
 e809
@@ -310,73 +310,9 @@
 0080
-a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47
+8
 0%22;%0A

Fix account state rlp encoding test