public void testDelaySync() {
ListenerSupport<Runnable,?> listeners = ListenerSupport.forType( Runnable.class )
.delay( 5, TimeUnit.SECONDS )
.build();
TLongList call_times = TCollections.synchronizedList( new TLongArrayList() );
listeners.add( () -> call_times.add( System.currentTimeMillis() ) );
long call1_time = System.currentTimeMillis();
listeners.dispatch().run();
assertEquals( "Expected one time: " + call_times, 1, call_times.size() );