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