@Test
public void testNoVisibleTools() {

  when(myModel.getVisibleTools(Side.LEFT)).thenReturn(Collections.emptyList());
  when(myModel.getHiddenTools(Side.LEFT)).thenReturn(ImmutableList.of(myToolWindow1, myToolWindow2));
  myPanel.modelChanged(myModel, SideModel.EventType.LOCAL_UPDATE);
  assertThat(myPanel.isVisible()).isFalse();
  assertThat(findHiddenComponents()).containsAllOf(myToolWindowComponent1, myToolWindowComponent2);
}