### Question:
UserGroupVm { public boolean isShowGroupDialog() { boolean show = showGroupDialog; showGroupDialog = false; return show; } UserGroupVm(@Nonnull GroupService groupService, @Nonnull SelectedEntity<Group> selectedEntity,
                       @Nonnull WindowManager windowManager, @Nonnull BranchService branchService); @Init void init(); void updateView(); @Command void searchGroup(); @Command void showGroupMemberEditWindow(); @Command @NotifyChange({SHOW_DELETE_CONFIRM_DIALOG, SHOW_MODERATOR_GROUP_SELECTION_PART, SELECTED_MODERATOR_GROUP, GROUP_SERVICE, SELECTED_GROUP}) void showGroupDeleteConfirmDialog(); @Command @NotifyChange({SELECTED_GROUP, MODERATING_BRANCHES}) void deleteGroup(); @Command @NotifyChange({SELECTED_GROUP_FOR_DIALOG, SHOW_GROUP_DIALOG, SHOW_DELETE_CONFIRM_DIALOG}) void showNewGroupDialog(); @Command @NotifyChange({SELECTED_GROUP_FOR_DIALOG, SHOW_GROUP_DIALOG}) void showEditDialog(); @Command @NotifyChange({SHOW_GROUP_DIALOG}) void saveGroup(); @Command @NotifyChange({SHOW_GROUP_DIALOG, SHOW_DELETE_CONFIRM_DIALOG, SHOW_MODERATOR_GROUP_SELECTION_PART}) void closeDialog(); @Command @NotifyChange({SELECTED_BRANCH, MODERATING_BRANCHES, SHOW_MODERATOR_GROUP_SELECTION_PART}) void saveModeratorForBranches(); @Command @NotifyChange({SELECTED_BRANCH, MODERATING_BRANCHES, SHOW_MODERATOR_GROUP_SELECTION_PART}) void saveModeratorForCurrentBranch(@BindingParam("branch") PoulpeBranch branch); List<PoulpeBranch> getModeratedBranches(); boolean isShowDeleteConfirmDialog(); boolean isShowGroupDialog(); boolean isShowDeleteModeratorGroupDialog(); GroupService getGroupService(); ListModelList<Group> getGroups(); Group getSelectedGroup(); Group getSelectedGroupForDialog(); void setSelectedGroup(Group group); void setSelectedGroupForDialog(Group groupForDialog); void setGroups(ListModelList<Group> groups); void setSearchString(String searchString); void setShowDeleteModeratorGroupDialog(boolean showDeleteModeratorGroupDialog); Group getSelectedModeratorGroupForAllBranches(); @NotifyChange({SELECTED_MODERATOR_GROUP, MODERATING_BRANCHES}) void setSelectedModeratorGroupForAllBranches(Group selectedModeratorGroupForAllBranches); BranchGroupMap getBranches(); Validator getGroupValidator();  }### Answer:
@Test public void testIsShowGroupDialog() { viewModel.showNewGroupDialog(); assertTrue(viewModel.isShowGroupDialog()); assertFalse(viewModel.isShowGroupDialog()); }