### Question:
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { public void setType(final String type) { kSessionModel.setType(type); parentPresenter.fireChangeEvent(); } @Inject  KnowledgeSessionListItemPresenter(final View view,
                                             final Event<DefaultKnowledgeSessionChange> defaultKnowledgeSessionChangeEvent,
                                             final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                             final ListenersListPresenter listenersListPresenter); @Override KnowledgeSessionListItemPresenter setup(final KSessionModel kSessionModel,
                                                   final KnowledgeSessionsModal parentPresenter); @Override void remove(); @Override KSessionModel getObject(); void setName(final String name); void setType(final String type); void addListener(); void addWorkItemHandler(); void fireChangeEvent(); void closeAllExpandableListItems(); void signalWorkItemHandlerAddedOrRemoved(); void signalListenerAddedOrRemoved(); void setDefault(final boolean isDefault); void onDefaultKnowledgeSessionChanged(@Observes final DefaultKnowledgeSessionChange event);  }### Answer:
@Test public void testSetType() { final KSessionModel kSessionModel = new KSessionModel(); final KnowledgeSessionsModal parentPresenter = mock(KnowledgeSessionsModal.class); knowledgeSessionListItemPresenter.parentPresenter = parentPresenter; knowledgeSessionListItemPresenter.kSessionModel = kSessionModel; knowledgeSessionListItemPresenter.setType("Type"); Assert.assertEquals("Type", kSessionModel.getType()); verify(parentPresenter).fireChangeEvent(); }