@Test
public void clicksMenuItem() throws Exception {
List<MenuItem> findControls = menuFinder.findMenus(any(MenuItem.class));
MenuItem menuItem = findControls.get(1);
try {
menuItem.notifyListeners(SWT.Selection, null);
fail("Expecting an SWTException");
} catch (SWTException e) {
pass();
}
assertText("&New Contact... Ctrl+N", menuItem);