### Question:
ImageEnricher extends BaseEnricher { @Override public void create(PlatformMode platformMode, KubernetesListBuilder builder) { if (!hasImageConfiguration()) { log.verbose("No images resolved. Skipping ..."); return; } ensureTemplateSpecs(builder); updateContainers(builder); } ImageEnricher(MavenEnricherContext buildContext); @Override void create(PlatformMode platformMode, KubernetesListBuilder builder);  }### Answer:
@Test public void checkEnrichDeployment() throws Exception { KubernetesListBuilder builder = new KubernetesListBuilder() .addNewDeploymentItem() .endDeploymentItem(); imageEnricher.create(PlatformMode.kubernetes, builder); assertCorrectlyGeneratedResources(builder.build(), "Deployment"); }
@Test public void checkEnrichReplicaSet() throws Exception { KubernetesListBuilder builder = new KubernetesListBuilder() .addNewReplicaSetItem() .endReplicaSetItem(); imageEnricher.create(PlatformMode.kubernetes, builder); assertCorrectlyGeneratedResources(builder.build(), "ReplicaSet"); }
@Test public void checkEnrichReplicationController() throws Exception { KubernetesListBuilder builder = new KubernetesListBuilder() .addNewReplicationControllerItem() .endReplicationControllerItem(); imageEnricher.create(PlatformMode.kubernetes, builder); assertCorrectlyGeneratedResources(builder.build(), "ReplicationController"); }
@Test public void checkEnrichDaemonSet() throws Exception { KubernetesListBuilder builder = new KubernetesListBuilder() .addNewDaemonSetItem() .endDaemonSetItem(); imageEnricher.create(PlatformMode.kubernetes, builder); assertCorrectlyGeneratedResources(builder.build(), "DaemonSet"); }
@Test public void checkEnrichStatefulSet() throws Exception { KubernetesListBuilder builder = new KubernetesListBuilder() .addNewStatefulSetItem() .endStatefulSetItem(); imageEnricher.create(PlatformMode.kubernetes, builder); assertCorrectlyGeneratedResources(builder.build(), "StatefulSet"); }
@Test public void checkEnrichDeploymentConfig() throws Exception { KubernetesListBuilder builder = new KubernetesListBuilder() .addNewDeploymentConfigItem() .endDeploymentConfigItem(); imageEnricher.create(PlatformMode.kubernetes, builder); assertCorrectlyGeneratedResources(builder.build(), "DeploymentConfig"); }