@@ -0,0 +1,956 @@
+/*%0A *%0A *%0A */%0Apackage com.damnhandy.uri.template;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * A TestMultipleOperators.%0A * %0A * @author %3Ca href=%22ryan@damnhandy.com%22%3ERyan J. McDonough%3C/a%3E%0A * @version $Revision: 1.1 $%0A */%0Apublic class TestMultipleOperators%0A%7B%0A%0A   private static final Map%3CString, Object%3E VALUES;%0A%0A   static%0A   %7B%0A      VALUES = new LinkedHashMap%3CString, Object%3E();%0A      VALUES.put(%22group_id%22, %2212345%22);%0A      VALUES.put(%22first_name%22, %22John%22);%0A      VALUES.put(%22item_id%22, %22yu780%22);%0A      VALUES.put(%22page%22, %225%22);%0A      VALUES.put(%22lang%22, %22en%22);%0A      VALUES.put(%22format%22, %22json%22);%0A      VALUES.put(%22q%22, %22URI Templates%22);%0A   %7D%0A   %0A   @Test%0A   public void testMultiplePathOperators() %0A   %7B%0A      String expression = %22/base%7B/group_id,id%7D/pages%7B/page,lang%7D%7B?format,q%7D%22;%0A      UriTemplate t = UriTemplate.fromExpression(expression);%0A      String uri = t.expand(VALUES);%0A      System.out.println(uri);%0A   %7D%0A%7D%0A

test to validate how multiple operators of the same type behave