### Question:
UserBanningVm { @Command @NotifyChange({AVAILABLE_USERS_PROP, BANNED_USERS_PROP}) public void revokeBan() { userService.revokeBan(selectedUser); selectedUser = null; } UserBanningVm(@Nonnull UserService userService); @Nonnull List<PoulpeUser> getAvailableUsers(); @Nonnull List<PoulpeUser> getBannedUsers(); @Nullable PoulpeUser getSelectedUser(); void setSelectedUser(PoulpeUser selectedUser); @Nullable PoulpeUser getAddBanFor(); void setAddBanFor(@Nonnull PoulpeUser addBanFor); @Command @NotifyChange({ADD_BAN_FOR_PROP, BANNED_USERS_PROP, AVAILABLE_FILTER_TEXT}) void banUser(); @Command @NotifyChange({AVAILABLE_USERS_PROP, BANNED_USERS_PROP}) void revokeBan(); @Command @NotifyChange({AVAILABLE_USERS_PROP}) void setAvailableFilter(@BindingParam("filterText") String filterText); String getAvailableFilter();  }### Answer:
@Test public void testRevokeBan() throws Exception { sut.setSelectedUser(user); sut.revokeBan(); verify(userService, times(1)).revokeBan(user); assertEquals(sut.getSelectedUser(), null); }