@Test
public void getDirectory() throws Exception {

  when(directoryRequest.execute()).thenReturn(DIRECTORY);
  DirectoryList actual = provider.getDirectory(REWRITTEN_ROOT);
  assertThat(actual).isEqualTo(DIRECTORY);
  verify(apis).generateDirectory(withConfigs(V1_JSON_API_CONFIG, V2_JSON_API_CONFIG));
}