public void testMultipleSequentialGroups() {
ToolbarView group1 = toolbar.addGroup();
ToolbarView group2 = toolbar.addGroup();
ToolbarView group3 = toolbar.addGroup();
ToolbarButtonView button11 = group1.addClickButton();
ToolbarButtonView button12 = group1.addToggleButton();
ToolbarButtonView button13 = group1.addSubmenu();
ToolbarButtonView button21 = group2.addClickButton();
ToolbarButtonView button22 = group2.addToggleButton();
ToolbarButtonView button23 = group2.addSubmenu();
ToolbarButtonView button31 = group3.addClickButton();
ToolbarButtonView button32 = group3.addToggleButton();
ToolbarButtonView button33 = group3.addSubmenu();
assertEquals(toolbar.getDisplayedItems(), ImmutableList.of(
button11,
button12,
button13,