DocksExpandedBar extends Composite implements ProvidesResize,
                                     RequiresResize { public void setPanelSize(int width, int height) { if (isValidHeightWidth(width, height)) { targetPanel.setPixelSize(width, height); } } DocksExpandedBar(UberfireDockPosition position); @Override void onResize(); void setup(String titleString,
                      ParameterizedCommand<String> closeCommand); void addContextMenuItem(Widget menuItem); void setupDockContentSize(); void setPanelSize(int width,
                             int height); FlowPanel targetPanel(); void clear(); UberfireDockPosition getPosition();  }
@Test public void setPanelSizeWithAnInvalidWidthShouldNeverSetupSizeOfTargetPanel() { docksExpandedBar.setPanelSize(0, -1); verify(targetPanel, never()).setPixelSize(anyInt(), anyInt()); }
@Test public void setPanelSizeAValidWidthShouldNeverSetupSizeOfTargetPanel() { docksExpandedBar.setPanelSize(1, 10); verify(targetPanel).setPixelSize(1, 10); }