@VisibleForTesting
    static EnumSet<MetricType> parseMetricTypes(String typeComponent) {
        final String[] split = typeComponent.split(LIST_DELIMITER);

        if (split.length == 1 && split[0].equals("*")) {
            return ALL_METRIC_TYPES;
        }

        return EnumSet.copyOf(
                Arrays.stream(split)
                        .map(s -> ConfigurationUtils.convertToEnum(s, MetricType.class))
                        .collect(Collectors.toSet()));
    }
@Test
    void testParseMetricTypesMultiple() {
        final EnumSet<MetricType> types = DefaultMetricFilter.parseMetricTypes("meter,counter");
        assertThat(types).containsExactlyInAnyOrder(MetricType.METER, MetricType.COUNTER);
    }