@Test
public void testDirectoryIsCloneable() throws Exception {

  ApiConfig config = configLoader.loadConfiguration(ServiceContext.create(), FooEndpoint.class);
  DiscoveryGenerator.Result result = generator.writeDiscovery(ImmutableList.of(config), context);
  result.directory().clone();
}