class ParamMap extends CollectionMap<Object, Object> {

	public ParamMap filter(String...patterns){
		LangUtils.filterMap(this, patterns);
		return this;
	}

}

class ParamMapTest {

	@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());
	}

}