AccountState implements Serializable { public BigInteger getBalance() { return balance; } AccountState(AccountAddress address);  AccountState(BigInteger nonce, BigInteger balance, AccountAddress address);  AccountState(AccountState source); BigInteger getNonce(); void setNonce(BigInteger nonce); BigInteger getBalance(); void setBalance(BigInteger balance); BigInteger addToBalance(BigInteger value); AccountAddress getAddress(); @Override String toString();  }
@Test public void testAccountStateConstructorWithCorrectBalance() { AccountState accountState = new AccountState(BigInteger.ZERO, BigInteger.valueOf(2), AccountAddress.EMPTY_ADDRESS); Assert.assertTrue(accountState.getBalance().longValue() == 2); }