public void testPrefixWithEmptyText() throws Exception {
   initText("");
   ((EditorEx) myEditor)
       .setPrefixTextAndAttributes(
           ">", new TextAttributes(Color.blue, Color.gray, null, null, Font.PLAIN));
   checkResult();
 }
 public void testXYToVisualPositionWhenPrefixIsSet() throws Exception {
   initText("abc");
   configureSoftWraps(1000); // to make sure soft wrap character width is properly mocked
   ((EditorEx) myEditor).setPrefixTextAndAttributes(">", new TextAttributes());
   assertEquals(new VisualPosition(0, 0), myEditor.xyToVisualPosition(new Point(1, 0)));
 }