### Question:
TopicTypeVm { @NotifyChange({"selected", "showPopUp"}) @Command public void newTopicType() { selected = new TopicType(); selected.setTitle("New Title"); selected.setDescription("New Description"); showPopUp = true; } 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 testNewTopicType() { topicTypeVm.newTopicType(); TopicType newTT = topicTypeVm.getSelected(); assertEquals(newTT.getTitle(), "New Title"); assertEquals(newTT.getDescription(), "New Description"); }