IMenuInfo barObject = MenuObjectInfoUtils.getMenuInfo(bar);
IMenuPolicy barPolicy = barObject.getPolicy();
// don't accept something other than MenuItem or MenuItemSeparator
assertFalse(barPolicy.validateMove(new Object()));
assertTrue(barPolicy.validateMove(separator));
barPolicy.commandMove(separator, null);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" MenuBar bar = new MenuBar();",