@Test public void basicTest() throws Exception { initMocks(this); final DOMNotificationListener domNotificationListener = mock(DOMNotificationListener.class); doReturn(null).when(domNotificationService).registerNotificationListener(domNotificationListener); this.registerNotificationListener(domNotificationListener); verify(domNotificationService).registerNotificationListener(domNotificationListener); doReturn(null).when(domNotificationService).registerNotificationListener(domNotificationListener, Collections.emptySet()); this.registerNotificationListener(domNotificationListener, Collections.emptySet()); verify(domNotificationService).registerNotificationListener(domNotificationListener, Collections.emptySet()); }
@Override public <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(final T listener, final Collection<Absolute> types) { return delegate().registerNotificationListener(listener, types); }
ForwardingDOMNotificationService extends ForwardingObject implements DOMNotificationService { @Override public <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(final T listener, final Collection<Absolute> types) { return delegate().registerNotificationListener(listener, types); } }
ForwardingDOMNotificationService extends ForwardingObject implements DOMNotificationService { @Override public <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(final T listener, final Collection<Absolute> types) { return delegate().registerNotificationListener(listener, types); }  }
ForwardingDOMNotificationService extends ForwardingObject implements DOMNotificationService { @Override public <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(final T listener, final Collection<Absolute> types) { return delegate().registerNotificationListener(listener, types); }  @Override ListenerRegistration<T> registerNotificationListener(final T listener,
            final Collection<Absolute> types); @Override ListenerRegistration<T> registerNotificationListener(final T listener,
            final Absolute... types); }
ForwardingDOMNotificationService extends ForwardingObject implements DOMNotificationService { @Override public <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(final T listener, final Collection<Absolute> types) { return delegate().registerNotificationListener(listener, types); }  @Override ListenerRegistration<T> registerNotificationListener(final T listener,
            final Collection<Absolute> types); @Override ListenerRegistration<T> registerNotificationListener(final T listener,
            final Absolute... types);  }