@Test public void basicTest() throws Exception { initMocks(this); final DOMRpcImplementation domRpcImplementation = mock(DOMRpcImplementation.class); doReturn(null).when(domRpcProviderService).registerRpcImplementation(domRpcImplementation); this.registerRpcImplementation(domRpcImplementation); verify(domRpcProviderService).registerRpcImplementation(domRpcImplementation); doReturn(null).when(domRpcProviderService).registerRpcImplementation(domRpcImplementation, Collections.emptySet()); this.registerRpcImplementation(domRpcImplementation, Collections.emptySet()); verify(domRpcProviderService).registerRpcImplementation(domRpcImplementation, Collections.emptySet()); }
@Override public <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation( final T implementation, final DOMRpcIdentifier... types) { return delegate().registerRpcImplementation(implementation, types); }
ForwardingDOMRpcProviderService extends ForwardingObject implements DOMRpcProviderService { @Override public <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation( final T implementation, final DOMRpcIdentifier... types) { return delegate().registerRpcImplementation(implementation, types); } }
ForwardingDOMRpcProviderService extends ForwardingObject implements DOMRpcProviderService { @Override public <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation( final T implementation, final DOMRpcIdentifier... types) { return delegate().registerRpcImplementation(implementation, types); }  }
ForwardingDOMRpcProviderService extends ForwardingObject implements DOMRpcProviderService { @Override public <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation( final T implementation, final DOMRpcIdentifier... types) { return delegate().registerRpcImplementation(implementation, types); }  @Override DOMRpcImplementationRegistration<T> registerRpcImplementation(
            final T implementation, final DOMRpcIdentifier... types); @Override DOMRpcImplementationRegistration<T> registerRpcImplementation(
            final T implementation, final Set<DOMRpcIdentifier> types); @Override Registration registerRpcImplementations(final Map<DOMRpcIdentifier, DOMRpcImplementation> map); }
ForwardingDOMRpcProviderService extends ForwardingObject implements DOMRpcProviderService { @Override public <T extends DOMRpcImplementation> DOMRpcImplementationRegistration<T> registerRpcImplementation( final T implementation, final DOMRpcIdentifier... types) { return delegate().registerRpcImplementation(implementation, types); }  @Override DOMRpcImplementationRegistration<T> registerRpcImplementation(
            final T implementation, final DOMRpcIdentifier... types); @Override DOMRpcImplementationRegistration<T> registerRpcImplementation(
            final T implementation, final Set<DOMRpcIdentifier> types); @Override Registration registerRpcImplementations(final Map<DOMRpcIdentifier, DOMRpcImplementation> map);  }