AdaptiveWorkbenchPanelView extends AbstractSimpleWorkbenchPanelView<AdaptiveWorkbenchPanelPresenter> { @Override public void addPart(final WorkbenchPartPresenter.View view) { listBar.addPart(view); }  @Override void addPart(final WorkbenchPartPresenter.View view);  }
@Test public void couldHaveMoreThanOnePart() { assertEquals(0, listBar.getPartsSize()); getViewToTest().addPart(mock(WorkbenchPartPresenter.View.class)); assertEquals(1, listBar.getPartsSize()); getViewToTest().addPart(mock(WorkbenchPartPresenter.View.class)); assertEquals(2, listBar.getPartsSize()); }