@Test public void testSelectAComboBox() throws Exception {
dialog.addComboBox("combo.name", new String[] { "a", "b", "c" });
dialog.addButton("button.name", "button.name");
dialog.show();
new SelectAction(new ComponentId("combo.name"), "c", ScriptModelServerPart.getModelServerPart(),
WindowMonitor.getInstance()).play(dialog.getResolver());
new ClickAction(BUTTON_ID, ScriptModelServerPart.getModelServerPart(), WindowMonitor.getInstance()).play(dialog
.getResolver());
assertEquals("c", dialog.getComboBox().getSelectedItem());
assertRecorded(i2 + "select('combo.name', 'c')\n" + i2 + "click('button.name')\n");