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