@Test
public void testWriteSwagger_FooEndpoint_internal() throws Exception {

  ApiConfig config = configLoader.loadConfiguration(ServiceContext.create(), FooEndpoint.class);
  Swagger swagger = generator.writeSwagger(ImmutableList.of(config), true, context);
  Swagger expected = readExpectedAsSwagger("foo_endpoint_internal.swagger");
  checkSwagger(expected, swagger);
}