ItemWidgetImpl extends Composite implements ItemWidget, ClickHandler { @NotNull @Override public SimpleLayoutPanel getImagePanel() { return imagePanel; } @Inject  ItemWidgetImpl(RunnerResources resources); @Override void select(); @Override void unSelect(); @Override void setDelegate(@NotNull ActionDelegate delegate); @Override void onClick(ClickEvent event); @Override void setName(@NotNull String name); @Override void setDescription(@Nullable String description); @Override void setStartTime(@NotNull String time); @Override void setImage(@NotNull SVGImage svgImageResource); @Override void setImage(@NotNull ImageResource imageResource); @NotNull @Override SimpleLayoutPanel getImagePanel();  }
@Test public void imagePanelShouldBeReturned() { SimpleLayoutPanel panel = itemWidget.getImagePanel(); assertThat(panel, sameInstance(itemWidget.imagePanel)); }