this.robot = robot;
this.target = target;
}
@Nonnull JMenuItem menuItemWithPath(@Nonnull String...path) {
ComponentMatcher m = new JMenuItemMatcher(path);
Component item = robot.finder().find(target, m);
assertThat(item).as(format(item)).isInstanceOf(JMenuItem.class);
return (JMenuItem)item;
}