### Question:
PipelineItemPresenter extends AbstractHasContentChangeHandlers { public boolean isSelected() { return view.isSelected(); } @Inject  PipelineItemPresenter(final View view); @PostConstruct void init(); void setup(final PipelineKey pipeline); PipelineKey getPipeline(); void addOthers(final Collection<PipelineItemPresenter> items); boolean isSelected(); IsElement getView();  }### Answer:
@Test public void testIsSelected() { when(view.isSelected()).thenReturn(true); assertTrue(presenter.isSelected()); when(view.isSelected()).thenReturn(false); assertFalse(presenter.isSelected()); }