/**
  * Test method for {@link
  * org.odlabs.wiquery.ui.dialog.util.DialogUtilsBehavior#questionDialog(java.lang.String)} .
  */
 @Test
 public void testQuestionDialog() {
   assertNotNull(dialogUtilsBehavior.questionDialog("a message"));
   assertEquals(
       dialogUtilsBehavior.questionDialog("a message").render().toString(),
       "$.ui.dialog.wiquery.questionDialog(2, 'fr', \"a message\", './wicket/resource/org.odlabs.wiquery.ui.dialog.util.DialogUtilsBehavior/questionmark.png');");
 }
 /**
  * Test method for {@link
  * org.odlabs.wiquery.ui.dialog.util.DialogUtilsBehavior#simpleDialog(java.lang.String,
  * java.lang.String)} .
  */
 @Test
 public void testSimpleDialog() {
   assertNotNull(dialogUtilsBehavior.simpleDialog("a title", "a message"));
   assertEquals(
       dialogUtilsBehavior.simpleDialog("a title", "a message").render().toString(),
       "$.ui.dialog.wiquery.simpleDialog(2, 'fr', 'a title', \"a message\");");
 }
  /**
   * Test method for {@link org.odlabs.wiquery.ui.dialog.util.DialogUtilsBehavior#waitDialog()} .
   */
  @Test
  public void testWaitDialog() {
    assertNotNull(dialogUtilsBehavior.waitDialog());
    WaitDialogStatements st = dialogUtilsBehavior.waitDialog();

    assertNotNull(st.getClose());
    assertNotNull(st.getOpen());

    assertEquals(st.getClose().render().toString(), "$('#dialog2').dialog('close');");
    assertEquals(
        st.getOpen().render().toString(),
        "$.ui.dialog.wiquery.waitDialog(2, 'fr', './wicket/resource/org.odlabs.wiquery.ui.dialog.util.DialogUtilsBehavior/wait.gif');");
  }