### Question:
OpenApiCustomizer implements CamelKIntegrationCustomizer { public OpenApiCustomizer( ControllersConfigurationProperties configuration, IntegrationResourceManager resourceManager) { this.configuration = configuration; this.resourceManager = resourceManager; } OpenApiCustomizer(
            ControllersConfigurationProperties configuration,
            IntegrationResourceManager resourceManager); @Override Integration customize(IntegrationDeployment deployment, Integration integration, EnumSet<Exposure> exposure);  }### Answer:
@Test public void testOpenApiCustomizer() throws Exception { URL location = getClass().getResource("/petstore.json"); byte[] content = Files.readAllBytes(Paths.get(location.toURI())); TestResourceManager manager = new TestResourceManager(); manager.put("petstore", new OpenApi.Builder().document(content).id("petstore").build()); Integration integration = new Integration.Builder() .id("test-integration") .name("Test Integration") .description("This is a test integration!") .addResource(new ResourceIdentifier.Builder() .kind(Kind.OpenApi) .id("petstore") .build()) .build(); IntegrationDeployment deployment = new IntegrationDeployment.Builder() .userId("user") .id("idId") .spec(integration) .build(); CamelKIntegrationCustomizer customizer = new OpenApiCustomizer(new ControllersConfigurationProperties(), manager); io.syndesis.server.controller.integration.camelk.crd.Integration i = customizer.customize( deployment, new io.syndesis.server.controller.integration.camelk.crd.Integration(), EnumSet.of(Exposure.SERVICE) ); assertThat(i.getSpec().getConfiguration()).hasSize(0); assertThat(i.getSpec().getSources()).anyMatch( s -> Objects.equals("openapi-routes", s.getDataSpec().getName()) && Objects.equals("xml", s.getLanguage()) && !s.getDataSpec().getCompression().booleanValue() ); assertThat(i.getSpec().getSources()).anyMatch( s -> Objects.equals("openapi-endpoint", s.getDataSpec().getName()) && Objects.equals("xml", s.getLanguage()) && !s.getDataSpec().getCompression().booleanValue() ); assertThat(i.getSpec().getResources()).anyMatch( s -> Objects.equals("openapi.json", s.getDataSpec().getName()) && Objects.equals("data", s.getType()) && s.getDataSpec().getCompression().booleanValue() && (s.getDataSpec().getContent().getBytes(UTF_8).length <= content.length) ); }