void () { for (Data testCase : data) { Presentation p = new Presentation(); p.setText(testCase.inputTextsAmpersand); assertEquals(testCase.menuText, p.getText()); assertEquals(testCase.mnemonic, p.getMnemonic()); assertEquals(testCase.index, p.getDisplayedMnemonicIndex()); assertEquals(testCase.fullMenuText, p.getTextWithPossibleMnemonic().get().toString()); assertTrue(testCase.menuText.length() > p.getDisplayedMnemonicIndex()); } }