@Test
public void testSetMnemonicButton() throws Exception {

    UnitTestAction action = new UnitTestAction("H&ello");
    JMenuItem menu = new JMenuItem(action);
    assertEquals("H&ello",menu.getText());
    MenuCommonFunctions.setMnemonic(menu);
    assertEquals(KeyEvent.VK_E,menu.getMnemonic());
    assertEquals("Hello",menu.getText());
}