@Test
public void testHasCorrectNonce() throws IOException, ClassNotFoundException {

    AccountAddress test = AccountAddress.fromHexString("Test");
    AccountState senderAccountState = AppServiceProvider.getAccountStateService().getOrCreateAccountState(test, accounts);
    senderAccountState.setNonce(BigInteger.TEN);
    AppServiceProvider.getAccountStateService().setAccountState(test, senderAccountState, accounts);
    Assert.assertTrue(accountsManager.hasCorrectNonce(accounts, "Test", BigInteger.TEN));
    //TODO: Uncomment this line when hasCorrectNonceImplementation is ready
    //Assert.assertFalse(accountsManager.hasCorrectNonce(accounts, "Test", BigInteger.TEN.add(BigInteger.ONE)));
}