AbstractSignal implements Signal<T> { @Override public void removeAll() { slotList.clear(); }  @Override Slot addOnce(T value); @Override Slot add(T value); @Override void dispatch(Object... values); @Override Slot remove(T value); @Override void removeAll(); @Override int listenersCount();  }
@Test public void removeAll() throws Exception { for (int i = 0; i < 5; ++i) { signal.add(mock(Listener.class)); } signal.removeAll(); assertThat(signal.listenersCount(), is(0)); }