String packageName = "scenic3.tutorial.controller.macher";
String className = "ListMacher";
String pageClassName = "scenic3.tutorial.page.BarPage";
String pagePath = "/foo/";
SortedMap<ActionPath, String> patterns = new TreeMap<ActionPath, String>();
patterns.put(new ActionPath("list", null), "scenic3.tutorial.controller._list");
UrlMatcherDesc desc = new UrlMatcherDesc(packageName, className, pageClassName, pagePath, patterns, null);
StringWriter writer = new StringWriter();
UrlMatcherGenerator generator = new UrlMatcherGenerator(desc, new PrintWriter(writer));
generator.generate();
String actual = writer.toString();