ParamMap extends CollectionMap<Object, Object> { public ParamMap filter(String...patterns){ LangUtils.filterMap(this, patterns); return this; } ParamMap();  ParamMap(Map<Object, Collection<Object>> map);  ParamMap(String paramStr);  ParamMap(String paramStr, Map<Object, Collection<Object>> map); ParamMap subtract(Map<Object, Collection<Object>> map); ParamMap addWithFilter(Map<Object, Collection<Object>> map, String...prefixs); ParamMap filter(String...patterns); ParamMap addMapWithFilter(Map map, String...prefixs); String toParamString();  }
@Test public void testFilterSelf(){ ParamMap map1 = new ParamMap("aa=aa-value&bb=bb-value"); map1.putElement("dd", "dd-value"); map1.putElement("test-ee", "testee-value"); map1.putElement("test-dd", "testdd-value"); map1.putElement("aa-test-dd", "testdd-value"); map1.filter("*test*"); System.out.println("map1:" + map1); Assert.assertEquals("{aa=[aa-value], bb=[bb-value], dd=[dd-value]}", map1.toString()); }