GatewayConfigmapLabels { public boolean isGatewayConfig(ConfigMap configMap) { for (Entry<String, String> labelEntry : labels.entrySet()) { if (!isLabeled(configMap, labelEntry.getKey(), labelEntry.getValue())) { return false; } } return true; } @Inject  GatewayConfigmapLabels(
      @Named("che.infra.kubernetes.singlehost.gateway.configmap_labels") String labelsProperty); Map<String, String> getLabels(); boolean isGatewayConfig(ConfigMap configMap);  }
@Test(dataProvider = "isGatewayConfigData") public void testIsGatewayConfig( String labelsProperty, Map<String, String> labels, boolean isGatewayConfigExpected) { GatewayConfigmapLabels gatewayConfigmapLabels = new GatewayConfigmapLabels(labelsProperty); ConfigMap cm = new ConfigMapBuilder().withNewMetadata().withLabels(labels).endMetadata().build(); assertEquals(gatewayConfigmapLabels.isGatewayConfig(cm), isGatewayConfigExpected); }