GridContextMenu extends AbstractHeaderMenuPresenter { @Override public void initMenu() { super.initMenu(); removeMenuItem(insertRowBelowElement); insertRowAboveLIElement = addExecutableMenuItem(GRIDCONTEXTMENU_INSERT_ROW_ABOVE, constants.insertRowAbove(), "insertRowAbove"); insertRowBelowLIElement = addExecutableMenuItem(GRIDCONTEXTMENU_INSERT_ROW_BELOW, constants.insertRowBelow(), "insertRowBelow"); duplicateRowLIElement = addExecutableMenuItem(GRIDCONTEXTMENU_DUPLICATE_ROW, constants.duplicateRow(), "duplicateRow"); deleteRowLIElement = addExecutableMenuItem(GRIDCONTEXTMENU_DELETE_ROW, constants.deleteRow(), "deleteRow"); }  @Override void initMenu(); void show(final GridWidget gridWidget, final int mx, final int my, int rowIndex);  }
@Test public void initMenu() { initMenu(gridContextMenuSpy); }