ScanningSchemaServiceProvider extends AbstractDOMSchemaService.WithYangTextSources implements AutoCloseable { @Override public EffectiveModelContext getGlobalContext() { return contextResolver.getEffectiveModelContext().orElse(null); }  void tryToUpdateSchemaContext(); @VisibleForTesting @SuppressWarnings("checkstyle:IllegalCatch") void notifyListeners(final EffectiveModelContext schemaContext); List<Registration> registerAvailableYangs(final List<URL> yangs); boolean hasListeners(); @Override EffectiveModelContext getGlobalContext(); @Override ListenerRegistration<EffectiveModelContextListener> registerSchemaContextListener(
            final EffectiveModelContextListener listener); @Override ListenableFuture<? extends YangTextSchemaSource> getSource(final SourceIdentifier sourceIdentifier); @Override void close();  }
@Test public void initJarScanningSchemaServiceTest() throws Exception { assertNotNull(schemaService.getGlobalContext()); assertNotNull(schemaService.getEffectiveModelContext()); assertEquals(schemaService.getGlobalContext(), schemaService.getEffectiveModelContext()); }