### Question:
ListenerListItemPresenter extends ListItemPresenter<ListenerModel, KnowledgeSessionListItemPresenter, ListenerListItemPresenter.View> { public void setType(final String type) { model.setType(type); parentPresenter.fireChangeEvent(); } @Inject  ListenerListItemPresenter(final View view); @Override ListenerListItemPresenter setup(final ListenerModel listenerModel,
                                           final KnowledgeSessionListItemPresenter parentPresenter); void setType(final String type); @Override void remove(); @Override ListenerModel getObject();  }### Answer:
@Test public void testSetType() { listenerListItemPresenter.model = new ListenerModel(); listenerListItemPresenter.parentPresenter = mock(KnowledgeSessionListItemPresenter.class); listenerListItemPresenter.setType("Type"); Assert.assertEquals("Type", listenerListItemPresenter.model.getType()); verify(listenerListItemPresenter.parentPresenter).fireChangeEvent(); }