### Question:
KnowledgeSessionsModal extends Elemental2Modal<KnowledgeSessionsModal.View> { public void add() { knowledgeBasesListPresenter.add(newKSessionModel()); signalKnowledgeBaseAddedOrRemoved(); } @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 testAdd() { doNothing().when(knowledgeSessionsModal).signalKnowledgeBaseAddedOrRemoved(); doReturn(mock(KSessionModel.class)).when(knowledgeSessionsModal).newKSessionModel(); knowledgeSessionsModal.add(); verify(knowledgeBasesListPresenter).add(any()); verify(knowledgeSessionsModal).signalKnowledgeBaseAddedOrRemoved(); }