LocalDiscoveryProvider extends AbstractDiscoveryProvider { @Override public RpcDescription getRpcDocument(String root, String name, String version) throws NotFoundException { throw new NotFoundException("RPC discovery is no longer supported."); } 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 getRpcDocument() { try { provider.getRpcDocument(ROOT, NAME, VERSION); fail("expected NotFoundException"); } catch (NotFoundException expected) { } }