### Question:
EJBQLPath extends SimpleNode { public String getAbsolutePath() { int len = getChildrenCount(); if (len < 1) { return null; } StringBuilder buffer = new StringBuilder(jjtGetChild(0).getText()); for (int i = 1; i < len; i++) { buffer.append('.').append(jjtGetChild(i).getText()); } return buffer.toString(); } EJBQLPath(int id); String getId(); String getRelativePath(); String getAbsolutePath();  }### Answer:
@Test public void testGetAbsolutePath() { EJBQLPath path = new EJBQLPath(-1); EJBQLIdentifier id = new EJBQLIdentifier(-1); id.setText("x"); EJBQLIdentificationVariable c1 = new EJBQLIdentificationVariable(-1); c1.setText("y"); path.jjtAddChild(id, 0); path.jjtAddChild(c1, 1); assertEquals("x.y", path.getAbsolutePath()); }