@Test
public void testWriteSwagger_MultiVersionEndpoint() throws Exception {

  ServiceContext serviceContext = ServiceContext.create();
  ImmutableList<ApiConfig> configs = ImmutableList.of(
      configLoader.loadConfiguration(serviceContext, Version1Endpoint.class),
      configLoader.loadConfiguration(serviceContext, Version2Endpoint.class));
  Swagger swagger = generator.writeSwagger(configs, false, context);
  Swagger expected = readExpectedAsSwagger("multi_version_endpoint.swagger");
  checkSwagger(expected, swagger);
}