OutputManagerModule { static Map<String, String> filterEnvironmentTags(final Map<String, String> env) { final Map<String, String> tags = new HashMap<>(); for (final Map.Entry<String, String> e : env.entrySet()) { if (e.getKey().startsWith(FFWD_TAG_PREFIX)) { final String tag = e.getKey().substring(FFWD_TAG_PREFIX.length()); tags.put(tag.toLowerCase(), e.getValue()); } } return tags; } @JsonCreator  OutputManagerModule(
        @JsonProperty("plugins") List<OutputPlugin> plugins,
        @JsonProperty("filter") Filter filter,
        @JsonProperty("ratelimit") @Nullable Integer rateLimit,
        @JsonProperty("cardinalitylimit") @Nullable Long cardinalityLimit,
        @JsonProperty("cardinalityttl") @Nullable Long hyperLogLogPlusSwapPeriodMS,
        @JsonProperty("dropHighFrequencyMetric") @Nullable Boolean dropHighFrequencyMetric,
        @JsonProperty("minFrequencyMillisAllowed") @Nullable Integer minFrequencyMillisAllowed,
        @JsonProperty("minNumberOfTriggers") @Nullable Integer minNumberOfTriggers,
        @JsonProperty("highFrequencyDataRecycleMS") @Nullable Long highFrequencyDataRecycleMS); Module module(); static Supplier<OutputManagerModule> supplyDefault(); static final String FFWD_TAG_PREFIX; static final String FFWD_RESOURCE_PREFIX; }
@Test public void testFilterEnvironment() { final Map<String, String> out = OutputManagerModule.filterEnvironmentTags( ImmutableMap.of("FFWD_TAG_FOO", "bar", "PATH", "ignored:ignored", "FFWD_TAG_bar", "baz")); assertEquals(ImmutableMap.of("foo", "bar", "bar", "baz"), out); }