FilterContext { @Override public String toString() { return "FilterContext{value='" + values + "', configEntries=" + configEntries.keySet() + '}'; } FilterContext(PropertyValue value, Map<String,PropertyValue> configEntries, ConfigurationContext configurationContext);  FilterContext(PropertyValue value, ConfigurationContext configurationContext);  FilterContext(List<PropertyValue> values, ConfigurationContext configurationContext); ConfigurationContext getConfigurationContext(); PropertyValue getProperty(); List<PropertyValue> getAllValues(); @Experimental boolean isSinglePropertyScoped(); @Experimental Map<String, PropertyValue> getConfigEntries(); @Override String toString();  }
@Test public void testToString() throws Exception { Map<String, PropertyValue> config = new HashMap<>(); for (int i = 0; i < 2; i++) { config.put("key-" + i, new PropertyValue("key-" + i, "value-" + i)); } PropertyValue val = new PropertyValue("testToString", "val"); FilterContext ctx = new FilterContext(val, config, ConfigurationContext.EMPTY); String toString = ctx.toString(); assertThat(toString).isNotNull(); System.out.println(toString); assertThat(toString).contains("FilterContext{value='[val]', configEntries=[", "key-0", "key-1").endsWith("}"); }