### Question:
KnowledgeSessionsModal extends Elemental2Modal<KnowledgeSessionsModal.View> { public void setup(final KnowledgeBaseItemPresenter parentPresenter) { this.parentPresenter = parentPresenter; knowledgeBasesListPresenter.setup( getView().getKnowledgeSessionsTable(), parentPresenter.getObject().getKSessions(), (kSessionModel, presenter) -> presenter.setup(kSessionModel, this)); superSetup(); setWidth("1200px"); } @Inject  KnowledgeSessionsModal(final View view,
                                  final KnowledgeBasesListPresenter knowledgeBasesListPresenter); void setup(final KnowledgeBaseItemPresenter parentPresenter); @Override void setWidth(final String width); KBaseModel getObject(); void add(); void signalKnowledgeBaseAddedOrRemoved(); void fireChangeEvent(); void done();  }### Answer:
@Test public void testSetup() { final KnowledgeBaseItemPresenter parentPresenter = mock(KnowledgeBaseItemPresenter.class); doReturn(new KBaseModel()).when(parentPresenter).getObject(); doNothing().when(knowledgeSessionsModal).superSetup(); doNothing().when(knowledgeSessionsModal).setWidth(any()); knowledgeSessionsModal.setup(parentPresenter); verify(knowledgeSessionsModal).superSetup(); verify(knowledgeBasesListPresenter).setup(any(), any(), any()); }