PathFilterSet set1 = new PathFilterSet("/tmp/stage");
set1.addInclude(new DefaultPathFilter("/tmp/stage/products(/.*)?"));
set1.addExclude(new DefaultPathFilter("/tmp/stage/products/triangle(/.*)?"));
set1.addExclude(new DefaultPathFilter(".*/foo"));
filter.add(set1);
PathMapping map = new SimplePathMapping("/tmp/stage", "/content/geometrixx/en");
WorkspaceFilter mapped = filter.translate(map);
assertFalse(mapped.contains("/content/geometrixx/en"));
assertTrue(mapped.contains("/content/geometrixx/en/products"));
assertFalse(mapped.contains("/content/geometrixx/en/products/triangle"));
assertFalse(mapped.contains("/content/geometrixx/en/products/foo"));