// Assert.assertEquals(mockTab, window.getComponent(0));
// }
@Test
public void stagePanelSetupWithTabs(){
ConfigPanel mockConfig = mock(ConfigPanel.class);
JPanel mockPanel = mock(JPanel.class);
when(mockConfig.build()).thenReturn(mockPanel);
when(mockConfig.getLabel()).thenReturn("mock config");
StagePanel stagePanel = new StagePanel(mockGeco, mock(JFrame.class));
stagePanel.buildConfigPanels(new ConfigPanel[] { mockConfig });
verify(mockConfig, times(1)).getLabel();
JPanel c = stagePanel.getConfigFor("mock config");
Assert.assertEquals(mockPanel, c.getComponent(0));