void () { Callbackable callbackable = new Callbackable(); EventListenerSetup listener = new EventListenerSetup(); callbackable.setCallback(listener.listener); if (listener.listenerHasBeenCalled) { throw new AssertionError(); } callbackable.callCallback(); if (!listener.listenerHasBeenCalled) { throw new AssertionError(); } }