@Test
public void hide() {

    when(rootPanelMock.getWidgetIndex(viewMock)).thenReturn(1);
    baseMenu.hide();
    verify(baseMenu, times(1)).isShown();
    verify(styleMock, times(1)).setDisplay(Style.Display.NONE);
    when(rootPanelMock.getWidgetIndex(viewMock)).thenReturn(-1);
    reset(baseMenu);
    reset(styleMock);
    baseMenu.hide();
    verify(baseMenu, times(1)).isShown();
    verify(styleMock, times(0)).setDisplay(Style.Display.NONE);
}