@Test
public void testThatWidthIsMaintained() {

  when(myModel.getHiddenSliders()).thenReturn(ImmutableList.of(myToolWindow2));
  when(myModel.getVisibleAutoHideTool()).thenReturn(myToolWindow1);
  when(myToolWindow1.isLeft()).thenReturn(true);
  myPanel.modelChanged(myModel, myEventType);
  mySplitter.setFirstSize(JBUI.scale(700));
  fireWidthChanged();
  assertThat(myPropertiesComponent.getInt(TOOL_WINDOW_PROPERTY_PREFIX + "BENCH.PALETTE.UNSCALED.WIDTH", -1)).isEqualTo(700);
  myPanel.modelChanged(myModel, myEventType);
  assertThat(mySplitter.getFirstSize()).isEqualTo(JBUI.scale(700));
}