public static PipelineMetricRegistry create(MetricRegistry metricRegistry,
                                                String pipelinesPrefix,
                                                String rulesPrefix) {
        return new PipelineMetricRegistry(metricRegistry, pipelinesPrefix, rulesPrefix);
    }
@Test
    void validation() {
        final var metricRegistry = new MetricRegistry();

        assertThatThrownBy(() -> PipelineMetricRegistry.create(null, "PIPELINE", "RULE"))
                .isInstanceOf(NullPointerException.class);

        assertThatThrownBy(() -> PipelineMetricRegistry.create(metricRegistry, null, "RULE"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> PipelineMetricRegistry.create(metricRegistry, "", "RULE"))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> PipelineMetricRegistry.create(metricRegistry, "  ", "RULE"))
                .isInstanceOf(IllegalArgumentException.class);

        assertThatThrownBy(() -> PipelineMetricRegistry.create(metricRegistry, "PIPELINE", null))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> PipelineMetricRegistry.create(metricRegistry, "PIPELINE", ""))
                .isInstanceOf(IllegalArgumentException.class);
        assertThatThrownBy(() -> PipelineMetricRegistry.create(metricRegistry, "PIPELINE", "  "))
                .isInstanceOf(IllegalArgumentException.class);
    }