@Test
public void testSignAndVerifyTransaction() throws Exception {

  final AergoSignVerifier verifier = new AergoSignVerifier();
  for (int i = 0; i < N_TEST; ++i) {
    final AergoKey key = new AergoKeyGenerator().create();
    final RawTransaction rawTransaction = RawTransaction.newBuilder(chainIdHash)
        .from(key.getAddress())
        .to(key.getAddress())
        .amount("10000", Unit.AER)
        .nonce(1L)
        .build();
    final Transaction signedTransaction = key.sign(rawTransaction);
    assertTrue(verifier.verify(signedTransaction));
  }
}