Swagger2MarkupExtensionRegistryBuilder { public Swagger2MarkupExtensionRegistryBuilder withSwaggerModelExtension(SwaggerModelExtension extension) { context.swaggerModelExtensions.add(extension); return this; } Swagger2MarkupExtensionRegistryBuilder(); Swagger2MarkupExtensionRegistry build(); Swagger2MarkupExtensionRegistryBuilder withSwaggerModelExtension(SwaggerModelExtension extension); Swagger2MarkupExtensionRegistryBuilder withOverviewDocumentExtension(OverviewDocumentExtension extension); Swagger2MarkupExtensionRegistryBuilder withDefinitionsDocumentExtension(DefinitionsDocumentExtension extension); Swagger2MarkupExtensionRegistryBuilder withPathsDocumentExtension(PathsDocumentExtension extension); Swagger2MarkupExtensionRegistryBuilder withSecurityDocumentExtension(SecurityDocumentExtension extension);  }
@Test public void testRegistering() { Swagger2MarkupExtensionRegistryBuilder registryBuilder = new Swagger2MarkupExtensionRegistryBuilder(); registryBuilder.withSwaggerModelExtension(new MySwaggerModelExtension()); }