@Test
public void testTwoVisibleTools() {

  when(myModel.getVisibleTools(Side.LEFT)).thenReturn(ImmutableList.of(myToolWindow1, myToolWindow2));
  when(myModel.getHiddenTools(Side.LEFT)).thenReturn(Collections.emptyList());
  myPanel.modelChanged(myModel, SideModel.EventType.LOCAL_UPDATE);
  assertThat(myPanel.isVisible()).isTrue();
  Component visible = findVisibleComponent();
  Splitter splitter = visible instanceof Splitter ? (Splitter)visible : null;
  assertThat(splitter).isNotNull();
  assertThat(splitter.getFirstComponent()).isEqualTo(myToolWindowComponent1);
  assertThat(splitter.getSecondComponent()).isEqualTo(myToolWindowComponent2);
  assertThat(findHiddenComponents()).containsNoneOf(myToolWindowComponent1, myToolWindowComponent2);
}