void () { myFixture.configureByFile(getTestName(false) + ".html"); final XmlTag tag = PsiTreeUtil.getParentOfType(myFixture.getFile().findElementAt(myFixture.getEditor().getCaretModel().getOffset()), XmlTag.class); assertNotNull(tag); assertNull(tag.getAttribute("type", "")); assertNotNull(tag.getAttribute("type", "http://tapestry.apache.org/schema/tapestry_5_0_0.xsd")); assertNotNull(tag.getAttribute("t:type", "")); assertNotNull(tag.getAttribute("type", "http://tapestry.apache.org/schema/tapestry_5_0_0.xsd")); }