void () { TextWithMnemonic hello = TextWithMnemonic.fromPlainText("hello", 'e'); assertEquals("h_ello", hello.toString()); assertTextWithoutSuffix(hello, "hello"); assertMnemonic(hello, 1, KeyEvent.VK_E, 'e'); assertEquals("hello", TextWithMnemonic.fromPlainText("hello", '\0').toString()); }