@Test
public void getApiList() throws Exception {

  ProxyingDiscoveryService discoveryService = createDiscoveryService(true);
  when(provider.getDirectory(SERVER_ROOT)).thenReturn(DIRECTORY);
  DirectoryList actual = discoveryService.getApiList(createRequest("discovery/v1/apis"));
  assertThat(actual).isEqualTo(DIRECTORY);
}