DOMRpcRouter extends AbstractRegistration implements DOMRpcRouterServices, EffectiveModelContextListener { @Override public DOMRpcProviderService getRpcProviderService() { return rpcProviderService; }  @Inject static DOMRpcRouter newInstance(final DOMSchemaService schemaService); @Override DOMActionService getActionService(); @Override DOMActionProviderService getActionProviderService(); @Override DOMRpcService getRpcService(); @Override DOMRpcProviderService getRpcProviderService(); @Override synchronized void onModelContextUpdated(final EffectiveModelContext newModelContext);  }
@Test public void close() { final DOMRpcRouter rpcRouter = new DOMRpcRouter(); rpcRouter.close(); final DOMRpcProviderService svc = rpcRouter.getRpcProviderService(); assertThrows(RejectedExecutionException.class, () -> svc.registerRpcImplementation(getTestRpcImplementation(), DOMRpcIdentifier.create(TestModel.TEST_QNAME, null))); }