### Question:
UserPersonalPermissionsVm { @Command public void showGroupsDialog(@BindingParam("permission") JtalksPermission permission, @BindingParam("mode") String mode) { selectedEntity.setEntity(new PermissionForEntity(group, mode, permission)); windowManager.open(MANAGE_GROUPS_DIALOG_ZUL); } UserPersonalPermissionsVm(@Nonnull GroupService groupService,
                                     @Nonnull SelectedEntity<Object> selectedEntity,
                                     @Nonnull PermissionsService permissionsService,
                                     @Nonnull WindowManager windowManager); @Init void updateView(); @Command void showGroupsDialog(@BindingParam("permission") JtalksPermission permission,
                                 @BindingParam("mode") String mode); static void showPage(WindowManager windowManager); List<PermissionManagementBlock> getBlocks(); SelectedEntity<Object> getSelectedEntity();  }### Answer:
@Test(dataProvider = "provideTypeOfPermissionsToObjectsesGroup") public void testShowGroupsDialog(ProfilePermission permission) { sut.showGroupsDialog(permission, "allow"); sut.showGroupsDialog(permission, "restrict"); }
@Test(expectedExceptions = {IllegalArgumentException.class}, dataProvider = "provideTypeOfPermissionsToObjectsesGroup") public void testShowGroupsDialog_IllegalFormat(ProfilePermission permission) { sut.showGroupsDialog(permission, "HERE_ILLEGAL_FORMATTED_STRING"); }