/*
* Test method for 'javax.swing.JMenuItem.processMenuKeyEvent(MenuKeyEvent)'
*/
public void testProcessMenuKeyEvent() {
final MenuSelectionManager menuSelectionManager = new MenuSelectionManager();
MenuKeyEvent event1 = new MenuKeyEvent(menuItem, KeyEvent.KEY_PRESSED, 0, 0, 0, 'a',
new MenuElement[0], menuSelectionManager);
MenuKeyEvent event2 = new MenuKeyEvent(menuItem, KeyEvent.KEY_RELEASED, 0, 0, 0, 'b',
new MenuElement[0], menuSelectionManager);
MenuKeyEvent event3 = new MenuKeyEvent(menuItem, KeyEvent.KEY_TYPED, 0, 0, 0, 'c',
new MenuElement[0], menuSelectionManager);
ConcreteMenuKeyListener listener1 = new ConcreteMenuKeyListener();
menuItem.addMenuKeyListener(listener1);
menuItem.processMenuKeyEvent(event1);
assertEquals("event fired properly ", "pressed", listener1.event);