void () { String text = "<a attr=\"abc${prop}def\"/>"; MyElement element = createElement(text, MyElement.class); MyPsiElement targetElement = new MyPsiElement(); registerInjectorFor(element, targetElement); assertEquals("abcFOOdef", element.getAttr().getStringValue()); assertEquals("abcFOOdef", element.getAttr().getValue()); assertReference(element.getAttr(), targetElement, text.indexOf("${prop}") + 1); }