EnricherManager { public void createDefaultResources(PlatformMode platformMode, final KubernetesListBuilder builder) { createDefaultResources(platformMode, defaultEnricherConfig, builder); } EnricherManager(ResourceConfig resourceConfig, EnricherContext enricherContext, Optional<List<String>> extraClasspathElements); void createDefaultResources(PlatformMode platformMode, final KubernetesListBuilder builder); void createDefaultResources(PlatformMode platformMode, ProcessorConfig enricherConfig, final KubernetesListBuilder builder); void enrich(PlatformMode platformMode, KubernetesListBuilder builder); void enrich(PlatformMode platformMode, final ProcessorConfig enricherConfig, final KubernetesListBuilder builder);  }
@Test public void createDefaultResources() { new Expectations() {{ context.getConfiguration(); result = new Configuration.Builder() .processorConfig(new ProcessorConfig(Arrays.asList("fmp-controller"), null, null)) .images(Arrays.asList(new ImageConfiguration.Builder().alias("img1").name("img1").build())) .build(); }}; EnricherManager manager = new EnricherManager(null, context, Optional.empty()); KubernetesListBuilder builder = new KubernetesListBuilder(); manager.createDefaultResources(PlatformMode.kubernetes, builder); assertTrue(builder.build().getItems().size() > 0); }