SideDockItem extends AbstractSideDockItem { @Override public void close() { opened = false; itemButton.setActive(false); itemButton.setType(ButtonType.LINK); if (getDock().getImageIcon() != null) { itemButton.remove(0); configureImageIcon(itemButton, getDock().getImageIcon()); } } SideDockItem(UberfireDock dock,
                 final ParameterizedCommand<String> openCommand,
                 final ParameterizedCommand<String> closeCommand); @Override void open(); @Override void openAndExecuteExpandCommand(); @Override void close(); void closeAndExecuteCommand(); boolean isOpened();  }
@Test public void closeSideDockItemWithFontIconTest() { sideDockWithFontIcon.close(); verify(sideDockWithFontIcon, never()).configureImageIcon(any(Button.class), any(ImageResource.class)); }
@Test public void closeSouthDockItemWithImageIconTest() { sideDockWithImageIcon.close(); verify(sideDockWithImageIcon).configureImageIcon(any(Button.class), eq(imageResource)); }