Tests that OpenModalDialogCommand objects can be constructed and rendered.
function testOpenModalDialogCommand() {
  $command = new OpenModalDialogCommand('Title', '<p>Text!</p>', array(
    'url' => 'example',
    'width' => 500,
  ));
  $expected = array(
    'command' => 'openDialog',
    'selector' => '#drupal-modal',
    'settings' => NULL,
    'data' => '<p>Text!</p>',
    'dialogOptions' => array(
      'url' => 'example',
      'width' => 500,
      'title' => 'Title',
      'modal' => TRUE,
    ),
  );
  $this
    ->assertEqual($command
    ->render(), $expected, 'OpenModalDialogCommand::render() returns a proper array.');
}