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