void () { initText(""" text with empty line"""); VisualPosition pos = new VisualPosition(1, 0); VisualPosition recalculatedPos = getEditor().xyToVisualPosition(getEditor().visualPositionToXY(pos)); assertEquals(pos, recalculatedPos); }