NestedBeanPropertyFilter extends SimpleBeanPropertyFilter { public static SimpleBeanPropertyFilter filterOutAllExcept(Class<?> clazz, String... propertyArray) { return new NestedBeanPropertyFilter(clazz, propertyArray); } private  NestedBeanPropertyFilter(Class<?> clazz, final String... properties); static SimpleBeanPropertyFilter filterOutAllExcept(Class<?> clazz, String... propertyArray); SimpleBeanPropertyFilter findPropertyFilter(Class<?> clazz); @Override void serializeAsField(Object pojo, JsonGenerator jgen, SerializerProvider provider, PropertyWriter writer);  }
@Test public void astrixOnPrimitiveValueTest() throws JsonProcessingException { new NestedPropertyFilterProvider().addFilter("nestedPropertyFilter", NestedBeanPropertyFilter.filterOutAllExcept(Pojo.class, "a.*")); }
@Test public void nestAfterAstrixTest() throws JsonProcessingException { new NestedPropertyFilterProvider().addFilter("nestedPropertyFilter", NestedBeanPropertyFilter.filterOutAllExcept(Pojo.class, "c.*.a")); }