@Test
public void addAccountCreationListener_MultipleTransactions_SingleEvent() throws Exception {

    enqueueCreateAccountResponses();
    enqueueTransactionsResponses();
    final int[] eventsCount = {0};
    blockchainEvents.addAccountCreationListener(new EventListener<Void>() {
        @Override
        public void onEvent(Void data) {
            eventsCount[0]++;
        }
    });
    Thread.sleep(500);
    assertThat(eventsCount[0], equalTo(1));
}