@Test
public void testFilterWildcard()
{

   PathTemplateFilter filter = PathTemplateFilter.create("foo").includeAll().build();
   PathAddress address = PathAddress.pathAddress("blah");
   address.addPathTemplateResolver(new PathTemplateResolver()
   {
      @Override
      public String resolve(String templateName)
      {
         if (templateName.equals("foo")) return "bar";
         return null;
      }
   });
   Assert.assertTrue(address.accepts(filter));
}