@Test
public void testBadTemplateExpression()
{

   try
   {
      PathElement.pathElement("{bad *}");
      fail();
   }
   catch (PatternSyntaxException e)
   {
   }
   try
   {
      PathElement.pathElement("{foo: *}/something/{bad: {{{}");
      fail();
   }
   catch (PatternSyntaxException e)
   {
   }
}