public class MenuMnemonicTextMatcherTest {
@Test
public void matchesMenuWithMnemonic() throws Exception {
Matcher matcher = withMnemonic("New Mnemonic");
assertTrue(matcher.matches(new ObjectWithGetText("New &Mnemonic\tCTRL_M")));
}
@Test
public void matchesMenuWithoutMnemonic() throws Exception {
Matcher matcher = withMnemonic("New Mnemonic");