void () { getDomManager().registerFileDescription(new DomFileDescription<>(MyBeans.class, "beans", "beans", "aop") { @Override protected void initializeFileDescription() { super.initializeFileDescription(); registerNamespacePolicy("beans", "beans"); registerNamespacePolicy("aop", "aop"); } }, getTestRootDisposable()); final XmlFile psiFile = createXmlFile("<beans xmlns=\"beans\" xmlns:aop=\"aop\">" + "<aop:config>" + "<aop:pointcut/>" + "</aop:config>" + "</beans>"); final MyBeans beans = getDomManager().getFileElement(psiFile, MyBeans.class).getRootElement(); final DomElement pointcut = getDomManager().getDomElement(beans.getXmlTag().findFirstSubTag("aop:config").findFirstSubTag("aop:pointcut")); assertNotNull(pointcut); final MyAopConfig aopConfig = beans.getConfig(); assertEquals(assertOneElement(aopConfig.getPointcuts()), pointcut); }