private void createParamConverter() {
    NewJavaClassWizardDialog newJavaClassDialog = new NewJavaClassWizardDialog();
    newJavaClassDialog.open();
    NewJavaClassWizardPage newJavaClassPage = newJavaClassDialog.getFirstPage();
    newJavaClassPage.setPackage("org.rest.test");
    newJavaClassPage.setName("Converter");
    newJavaClassDialog.finish();

    TextEditor editor = new TextEditor();
    editor.activate();
    editor.setText(PARAM_CONVERTER_PROVIDER_CLASS_TEXT);
    editor.save();
  }
  /** Tests Multiple Selection */
  @Test
  public void testMultipleSeletion() {

    jspEditor.activate();
    jspEditor.setText(MultiSelectionTest.PAGE_TEXT);
    jspEditor.save();
    jspEditor.selectText(MultiSelectionTest.OUTPUT_TEXT_1_TEXT);

    assertSelectedNodeHasText(webBrowser, MultiSelectionTest.OUTPUT_TEXT_1_TEXT);

    jspEditor.selectText(MultiSelectionTest.OUTPUT_TEXT_0_TEXT);

    assertSelectedNodeHasText(webBrowser, MultiSelectionTest.OUTPUT_TEXT_0_TEXT);

    jspEditor.selectText(
        "<h:outputText value=\"!@#_OUTPUT-TEXT_0_#@!\"/><h:outputText value=\"!@#_OUTPUT-TEXT_1_#@!\"/>");

    assertTrue(
        "Multiple selection doesn't contain proper nodes.",
        webBrowser.selectionContainsNodes(
            false, MultiSelectionTest.OUTPUT_TEXT_0_TEXT, MultiSelectionTest.OUTPUT_TEXT_1_TEXT));
  }
 @Test
 public void testToggleComment() throws Throwable {
   // Test open page
   openPage();
   textEditor = new TextEditor(TEST_PAGE);
   originalEditorText = DEFAULT_TEST_PAGE_TEXT;
   textEditor.setText(DEFAULT_TEST_PAGE_TEXT);
   textEditor.save();
   // Test toggle comment from Source menu
   textEditor.setCursorPosition(16, 20);
   new ShellMenu("Source", "Toggle Comment").select();
   textEditor.save();
   new WaitWhile(new JobIsRunning());
   Browser browser = new InternalBrowser();
   assertVisualEditorContainsManyComments(browser, 2, TEST_PAGE);
   final String commentValue = "<h:commandButton action=\"hello\" value=\"Say Hello!\" />";
   assertVisualEditorContainsCommentWithValue(browser, commentValue);
   // Test untoggle comment from Source menu
   new ShellMenu("Source", "Toggle Comment").select();
   textEditor.save();
   new WaitWhile(new JobIsRunning());
   assertVisualEditorContainsManyComments(browser, 1, TEST_PAGE);
   // Test toggle comment with CTRL+SHIFT+C hot keys
   textEditor.activate();
   textEditor.setCursorPosition(16, 20);
   pressToggleCommentHotKeys();
   textEditor.save();
   new WaitWhile(new JobIsRunning());
   assertVisualEditorContainsManyComments(browser, 2, TEST_PAGE);
   assertVisualEditorContainsCommentWithValue(browser, commentValue);
   // Test untoggle comment with CTRL+SHIFT hot keys
   textEditor.setCursorPosition(16, 20);
   pressToggleCommentHotKeys();
   textEditor.save();
   new WaitWhile(new JobIsRunning());
   assertVisualEditorContainsManyComments(browser, 1, TEST_PAGE);
 }