UnanchoredStaticWorkbenchPanelView extends AbstractWorkbenchPanelView<UnanchoredStaticWorkbenchPanelPresenter> { @Override public Collection<PartDefinition> getParts() { PartDefinition currentPartDefinition = getCurrentPartDefinition(); if (currentPartDefinition == null) { return new ArrayList<>(); } return Arrays.asList(currentPartDefinition); }  @Override Widget getWidget(); StaticFocusedResizePanel getPanel(); @Override void init(final UnanchoredStaticWorkbenchPanelPresenter presenter); @Override UnanchoredStaticWorkbenchPanelPresenter getPresenter(); @Override void addPart(final WorkbenchPartPresenter.View view); @Override void changeTitle(final PartDefinition part,
                            final String title,
                            final IsWidget titleDecoration); @Override boolean selectPart(final PartDefinition part); @Override boolean removePart(final PartDefinition part); @Override void setFocus(boolean hasFocus); @Override void onResize(); @Override Collection<PartDefinition> getParts();  }
@Test public void getPartsShouldReturnCurrentPartDefinition() { view = new UnanchoredStaticWorkbenchPanelView() { @Override PartDefinition getCurrentPartDefinition() { return mock(PartDefinition.class); } }; assertFalse(view.getParts().isEmpty()); }