### Question:
SAXUtil { public static String getXPath(SAXElement element) { StringBuilder builder = new StringBuilder(); addXPathElement(element, builder); return builder.toString(); }  static String getAttribute(String attributeName, Attributes attributes); static String getAttribute(String attributeName, Attributes attributes, String defaultVal); static String getAttribute(String attributeNamespace, String attributeName, Attributes attributes, String defaultVal); static String getXPath(SAXElement element); static int getDepth(SAXElement element); static QName toQName(String namespaceURI, String localName, String qName); static QName toQName(Element element);  }### Answer:
@Test public void test_getXPath() { SAXElement a = new SAXElement("http: SAXElement b = new SAXElement("http: SAXElement c = new SAXElement("http: assertEquals("a/b/c", SAXUtil.getXPath(c)); }