void () { assertNull(TextWithMnemonic.fromMnemonicText("hello & goodbye")); // does not contain the MNEMONIC marker assertEquals("hello && _goodbye", TextWithMnemonic.fromMnemonicText("hello & " + MNEMONIC + "goodbye").toString()); assertEquals("_hello & goodbye", TextWithMnemonic.fromMnemonicText(MNEMONIC + "hello & goodbye").toString()); assertIllegalMnemonicText(MNEMONIC + "hello & " + MNEMONIC + "goodbye"); assertIllegalMnemonicText("hello" + MNEMONIC); }