@Test
public void should_click_menu() {
ClickRecorder clickRecorder = attachTo(menuItem);
driver.click(menuItem);
clickRecorder.wasClicked();
}
private static class MyWindow extends TestWindow {
final JMenu menuFile = new JMenu("File");
final JMenuItem menuNew = new JMenuItem("New");