@Test
public void testRequest() throws Exception {

  final TryCountAndInterval tryCountAndInterval = TryCountAndInterval.of(3, Time.of(100L));
  final TxRequester txRequester = new NonceRefreshingTxRequester(tryCountAndInterval,
      new SimpleNonceProvider());
  final AergoKey signer = new AergoKeyGenerator().create();
  final TxHash expected = TxHash.of(BytesValue.of(randomUUID().toString().getBytes()));
  final TxHash actual = txRequester
      .request(mock(AergoClient.class), signer, new TxRequestFunction() {
        @Override
        public TxHash apply(Signer signer, Long aLong) {
          return expected;
        }
      });
  assertEquals(expected, actual);
}