void () { TextWithMnemonic test = TextWithMnemonic.parse("_Hello & Goodbye"); assertEquals("Hello & Goodbye", test.getText()); assertEquals("_Hello & Goodbye", test.toString()); assertMnemonic(test, 0, KeyEvent.VK_H, 'H'); }