@Test
public void getRpcDocument() throws Exception {

  when(rpcRequest.execute()).thenReturn(RPC_DOC);
  RpcDescription actual = provider.getRpcDocument(REWRITTEN_ROOT, NAME, V1);
  assertThat(actual).isEqualTo(RPC_DOC);
  verify(apis).generateRpc(
      new com.google.api.services.discovery.model.ApiConfig().setConfig(V1_JSON_API_CONFIG));
}