public void testVariableNames() throws Exception { Template tpl = new Template("http://{userId}.noelios.com/invoices/{invoiceId}"); tpl.setLogger(Engine.getAnonymousLogger()); List<String> names = tpl.getVariableNames(); assertEquals(2, names.size()); assertEquals("userId", names.get(0)); assertEquals("invoiceId", names.get(1)); }