}
}
;
Icon icon = createNewIcon();
String text = "texttext";
MyAction action = new MyAction(text, icon);
button = menuItem = menu = new JMenu(action);
assertEquals("icon ", icon, menuItem.getIcon());
assertEquals("text ", text, menuItem.getText());
assertEquals("action", action, menuItem.getAction());
assertEquals("command ", command, menuItem.getActionCommand());
assertFalse("selected ", menuItem.isSelected());
assertTrue("enabled ", menuItem.isEnabled());
assertNull("accelerator ", menuItem.getAccelerator());
assertTrue(menuItem.isFocusable());
assertEquals(200, menu.getDelay());
action.setEnabled(false);
button = menuItem = menu = new JMenu(action);
assertEquals("icon ", icon, menuItem.getIcon());
assertEquals("text ", text, menuItem.getText());
assertEquals("action", action, menuItem.getAction());
assertEquals("command ", command, menuItem.getActionCommand());