frame.dispose();
}
private void registerToolWindow() {
Component toolContent = new JLabel("label");
ToolWindow toolWindow = toolWindowManager.registerToolWindow(
"id", "title", null, toolContent, ToolWindowAnchor.LEFT
);
assertNotNull(toolWindow);
assertEquals("id", toolWindow.getId());
assertEquals("title", toolWindow.getTitle());
assertNull(toolWindow.getIcon());
assertEquals(ToolWindowAnchor.LEFT, toolWindow.getAnchor());
assertEquals(1, toolWindowManager.getToolWindows().length);
assertEquals(toolWindow, toolWindowManager.getToolWindow("id"));
}