@Test
public void addAccountCreationListener_StopListener_NoEvents() throws Exception {

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