@Test
public void testUncommentUnbrokenRangeWithCommentRemainingOnLineTwo() {

    org.junit.Assume.assumeTrue(!GraphicsEnvironment.isHeadless());
    RSyntaxTextArea scriptPanel = new RSyntaxTextArea();
    scriptPanel.setText(CommentUtil.SQL_COMMENT_CHARACTER + LINE_ONE
            + CommentUtil.SQL_COMMENT_CHARACTER + CommentUtil.SQL_COMMENT_CHARACTER + LINE_TWO
            + CommentUtil.SQL_COMMENT_CHARACTER + LINE_THREE);
    scriptPanel.selectAll();
    // Uncomment all three lines, leaving only line two commented.
    CommentUtil.commentOrUncommentSQL(scriptPanel);
    // Uncomment the first two lines.
    assertEquals(LINE_ONE
            + CommentUtil.SQL_COMMENT_CHARACTER + LINE_TWO
            + LINE_THREE,
            scriptPanel.getText());
}