@@ -0,0 +1,1356 @@
+package com.fasterxml.jackson.databind.filter;%0A%0Aimport java.util.*;%0A%0Aimport com.fasterxml.jackson.annotation.JsonFilter;%0A%0Aimport com.fasterxml.jackson.databind.*;%0Aimport com.fasterxml.jackson.databind.ser.FilterProvider;%0Aimport com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;%0Aimport com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;%0A%0Apublic class TestMapFiltering extends BaseMapTest%0A%7B%0A    static class MapBean %7B%0A        @JsonFilter(%22filterX%22)%0A        public Map%3CString,Integer%3E values;%0A        %0A        public MapBean() %7B%0A            values = new LinkedHashMap%3CString,Integer%3E();%0A            values.put(%22a%22, 1);%0A            values.put(%22b%22, 5);%0A            values.put(%22c%22, 9);%0A        %7D%0A    %7D%0A    %0A    /*%0A    /**********************************************************%0A    /* Unit tests%0A    /**********************************************************%0A     */%0A    %0A    // should also work for @JsonAnyGetter, as per %5BJACKSON-516%5D%0A    public void testAnyGetterFiltering() throws Exception%0A    %7B%0A        ObjectMapper mapper = new ObjectMapper();%0A        FilterProvider prov = new SimpleFilterProvider().addFilter(%22filterX%22,%0A                SimpleBeanPropertyFilter.filterOutAllExcept(%22b%22));%0A        assertEquals(aposToQuotes(%22%7B'values':%7B'b':5%7D%7D%22),%0A                mapper.writer(prov).writeValueAsString(new MapBean()));%0A    %7D%0A%0A%7D%0A

Add a (failing) unit test for #307