code: public boolean clickMenuItem(int menuItemResId) {
      final RoboMenuItem item = new RoboMenuItem(menuItemResId);
      return realActivity.onMenuItemSelected(Window.FEATURE_OPTIONS_PANEL, item);
    }
docs: Perform a click on a menu item.
  
  @param menuItemResId Menu item resource ID.
  @return True if the click was handled, false otherwise.