SynchronizePluginableContainerListener implements PluginableElementEventListener<T> { @Override public void elementAdded(T element) { destination.addElement(element); } SynchronizePluginableContainerListener(PluginableElementsContainer<T> destination); @Override void elementAdded(T element); @Override void elementRemoved(T element); @Override void elementChanged(T element);  }
@Test public void testElementAdded() { SoapMessageFormatter element = new SoapMessageFormatter(); s.elementAdded(element); verify(d, only()).addElement(element); }