assertFalse(barPolicy.validateCreate(new Object()));
// create new MenuItemSeparator
MenuItemSeparatorInfo newSeparator =
createJavaInfo("com.google.gwt.user.client.ui.MenuItemSeparator");
assertTrue(barPolicy.validateCreate(newSeparator));
barPolicy.commandCreate(newSeparator, null);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" MenuBar bar = new MenuBar();",