LocalDiscoveryProvider extends AbstractDiscoveryProvider { @Override public DirectoryList getDirectory(String root) { ensureDiscoveryResult(); return replaceRoot(directoryList, root); } LocalDiscoveryProvider(ImmutableList<ApiConfig> apiConfigs, DiscoveryGenerator generator,
      SchemaRepository repository); @Override RestDescription getRestDocument(String root, String name, String version); @Override RpcDescription getRpcDocument(String root, String name, String version); @Override DirectoryList getDirectory(String root);  }
@Test public void getDirectory() throws Exception { DirectoryList directory = provider.getDirectory(ROOT); assertThat(directory.getItems().get(0).getDiscoveryRestUrl()) .isEqualTo("https: }