void () { String reference = configureAndCopyReference(); int line = myFixture.getEditor().getDocument().getLineNumber(myFixture.getCaretOffset()); String expected = getTestName(true) + ".yml:" + (line + 1); assertEquals(expected, reference); }