void () { init("abc"); getEditor().getColorsScheme().setAttributes(HighlighterColors.TEXT, new TextAttributes(Color.black, Color.white, null, null, Font.BOLD)); IterationState it = new IterationState((EditorEx)getEditor(), 0, 3, null, false, false, true, false); assertFalse(it.atEnd()); assertEquals(0, it.getStartOffset()); assertEquals(3, it.getEndOffset()); TextAttributes attributes = it.getMergedAttributes(); assertEquals(Font.BOLD, attributes.getFontType()); }