@Test
public void testBindState() {

  final long nonce = 3;
  final Aer balance = Aer.ONE;
  final AbstractAccount account = spy(AbstractAccount.class);
  final AccountState state = AccountState.newBuilder()
      .address(AccountAddress.EMPTY)
      .nonce(nonce)
      .balance(balance)
      .build();
  account.bindState(state);
  assertEquals(nonce, account.getRecentlyUsedNonce());
}