@Test
public void getRestDocument() throws Exception {

  when(restRequest.execute()).thenReturn(REST_DOC);
  RestDescription actual = provider.getRestDocument(REWRITTEN_ROOT, NAME, V1);
  assertThat(actual).isEqualTo(REST_DOC);
  verify(apis).generateRest(
      new com.google.api.services.discovery.model.ApiConfig().setConfig(V1_JSON_API_CONFIG));
}