Border border = b.getBorder();
ContainerEvent e = new ContainerEvent(toolBar, ContainerEvent.COMPONENT_ADDED, b);
l.componentAdded(e);
assertNotSame(border, b.getBorder());
e = new ContainerEvent(toolBar, ContainerEvent.COMPONENT_REMOVED, b);
l.componentRemoved(e);
assertSame(border, b.getBorder());
}
public void testToolBarFocusListener() {
toolBar.add(b);