### Question:
TopicTypeVm { @NotifyChange({"selected", "topicTypes", "showPopUp"}) @Command public void saveTopicType() { getTopicTypeService().saveOrUpdate(selected); if (!topicTypes.contains(selected)) { getTopicTypes().add(selected); } cancelEditTopicType(); } TopicTypeVm(@Nonnull TopicTypeService topicTypeService,
                       @Nonnull DialogManager dialogManager); @NotifyChange({"selected", "showPopUp"}) @Command void newTopicType(); @NotifyChange({"showPopUp"}) @Command void editTopicType(); @NotifyChange({"selected", "topicTypes", "showPopUp"}) @Command void saveTopicType(); @NotifyChange({"selected", "showPopUp"}) @Command void cancelEditTopicType(); @NotifyChange({"selected", "topicTypes"}) @Command void deleteTopicType(); @NotifyChange({"selected", "topicTypes"}) @Command void deleteFromList(TopicType selected); DialogManager getDialogManager(); ListModelList<TopicType> getTopicTypes(); void setTopicTypes(ListModelList<TopicType> topicTypes); TopicType getSelected(); void setSelected(TopicType selected); TopicTypeService getTopicTypeService(); Boolean getShowPopUp();  }### Answer:
@Test public void testSaveTopicType() { topicTypeVm.saveTopicType(); verify(topicTypeVm.getTopicTypeService()).saveOrUpdate(any(TopicType.class)); }