@Test
public void testOneVisibleTool() {

  when(myModel.getVisibleTools(Side.LEFT)).thenReturn(Collections.singletonList(myToolWindow1));
  when(myModel.getHiddenTools(Side.LEFT)).thenReturn(ImmutableList.of(myToolWindow2));
  myPanel.modelChanged(myModel, SideModel.EventType.LOCAL_UPDATE);
  assertThat(myPanel.isVisible()).isTrue();
  assertThat(findVisibleComponent()).isSameAs(myToolWindowComponent1);
  assertThat(findHiddenComponents()).contains(myToolWindowComponent2);
}