final MultiplePathFilterBuilder builder = PathFilters.multiplePathFilterBuilder(true);
builder.addFilter(PathFilters.match("foo/*"), false);
builder.addFilter(PathFilters.match("**/bar/**"), false);
builder.addFilter(PathFilters.match("baz/**"), false);
PathFilter pathFilter = builder.create();
assertTrue(pathFilter.accept("foo"));
assertFalse(pathFilter.accept("foo/bar"));
assertFalse(pathFilter.accept("foo/bar/baz"));
assertFalse(pathFilter.accept("baz/foo/bar"));
}
}