// don't accept something other than MenuItem
assertFalse(policy.validateCreate(new Object()));
// create new MenuItem
MenuItemInfo newItem = createJavaInfo("com.google.gwt.user.client.ui.MenuItem", "withSubMenu");
assertTrue(policy.validateCreate(newItem));
policy.commandCreate(newItem, null);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" MenuBar bar = new MenuBar();",