@Test
public void testIncrementAndGetNonce() {

  final NonceProvider nonceProvider = new SimpleNonceProvider();
  final AccountAddress identity = new AergoKeyGenerator().create().getAddress();
  final int tryCount = 10;
  for (int i = 0; i < tryCount; ++i) {
    nonceProvider.incrementAndGetNonce(identity);
  }
  assertEquals(tryCount + 1, nonceProvider.incrementAndGetNonce(identity));
}