@Test
public void testNoToolsVisible() {

  when(myToolWindow1.isMinimized()).thenReturn(true);
  when(myToolWindow2.isMinimized()).thenReturn(true);
  when(myModel.getTopTools(Side.LEFT)).thenReturn(Collections.singletonList(myToolWindow1));
  when(myModel.getBottomTools(Side.LEFT)).thenReturn(Collections.singletonList(myToolWindow2));
  myPanel.modelChanged(myModel, SideModel.EventType.LOCAL_UPDATE);
  assertThat(myPanel.isVisible()).isTrue();
  assertThat(findVisibleComponents(Split.TOP)).containsExactly(myButton1);
  assertThat(findVisibleComponents(Split.BOTTOM)).containsExactly(myButton2);
  assertThat(findHiddenComponents()).isEmpty();
}