EventSourceRegistrationImpl extends AbstractObjectRegistration<T> implements EventSourceRegistration<T> { @Override protected void removeRegistration() { this.eventSourceTopology.unRegister(getInstance()); } EventSourceRegistrationImpl(T instance, EventSourceTopology eventSourceTopology);   }
@Test public void removeRegistrationTest() { eventSourceRegistrationImplLocal.removeRegistration(); verify(eventSourceTopologyMock, times(1)).unRegister(any(EventSource.class)); }