@Test
public void getRpcDocument() throws Exception {

  ProxyingDiscoveryService discoveryService = createDiscoveryService(true);
  when(provider.getRpcDocument(SERVER_ROOT, API_NAME, API_VERSION)).thenReturn(RPC_DOC);
  RpcDescription actual = discoveryService.getRpcDocument(
      createRequest("discovery/v1/apis/tictactoe/v1/rpc"), API_NAME, API_VERSION);
  assertThat(actual).isEqualTo(RPC_DOC);
}