SouthDockItem extends AbstractDockItem { @Override public void close() { opened = false; itemButton.setType(ButtonType.LINK); if (getDock().getImageIcon() != null) { itemButton.remove(0); configureImageIcon(itemButton, getDock().getImageIcon()); } } SouthDockItem(final UberfireDock dock,
                  final ParameterizedCommand<String> openCommand,
                  final ParameterizedCommand<String> closeCommand); @Override void openAndExecuteExpandCommand(); @Override void open(); @Override void close();  }
@Test public void closeSouthDockItemWithFontIconTest() { southDockWithFontIcon.close(); verify(southDockWithFontIcon, never()).configureImageIcon(any(Button.class), any(ImageResource.class)); }
@Test public void closeSouthDockItemWithImageIconTest() { southDockWithImageIcon.close(); verify(southDockWithImageIcon).configureImageIcon(any(Button.class), eq(imageResource)); }