### Question:
EditGroupMembersVm extends TwoSideListWithFilterVm<PoulpeUser> { @NotifyChange({AVAIL_TOTAL_SIZE}) public int getAvailTotalSize() { int result = userService.countUsernameMatches(getAvailFilterTxt()) - getStateAfterEdit().size(); if (result < 0) { return 0; } return result; } EditGroupMembersVm(@Nonnull WindowManager windowManager, @Nonnull GroupService groupService,
                              @Nonnull UserService userService, @Nonnull SelectedEntity<Group> selectedEntity); Group getGroupToEdit(); int getActiveAvailPage(); UiPagination getAvailPagination(); void setAvailPagination(UiPagination availPagination); @NotifyChange({AVAIL_ACTIVE_PAGE, AVAIL_PROPERTY}) void setActiveAvailPage(int activePage); @NotifyChange({AVAIL_TOTAL_SIZE}) int getAvailTotalSize(); int getItemsAvailPerPage(); void setItemsAvailPerPage(int itemsPerPage); List<PoulpeUser> getCommonBufferUsers(); void setCommonBufferUsers(List<PoulpeUser> commonBufferUsers); @Command @NotifyChange({AVAIL_ACTIVE_PAGE, AVAIL_TOTAL_SIZE, AVAIL_PROPERTY, EXIST_PROPERTY, AVAIL_SELECTED_PROPERTY, EXIST_SELECTED_PROPERTY}) void filterAvail(); @Command @NotifyChange({AVAIL_PROPERTY, EXIST_PROPERTY, AVAIL_SELECTED_PROPERTY, EXIST_SELECTED_PROPERTY}) void filterExist(); @Command void save(); @Command void cancel(); @Init void updateVm(); static void showDialog(WindowManager windowManager); @Override @Command @NotifyChange({AVAIL_ACTIVE_PAGE, AVAIL_TOTAL_SIZE, AVAIL_PROPERTY, EXIST_PROPERTY, AVAIL_SELECTED_PROPERTY, EXIST_SELECTED_PROPERTY}) void add(); @Override @Command @NotifyChange({AVAIL_ACTIVE_PAGE, AVAIL_TOTAL_SIZE, AVAIL_PROPERTY, EXIST_PROPERTY, AVAIL_SELECTED_PROPERTY, EXIST_SELECTED_PROPERTY}) void addAll(); @Override @Command @NotifyChange({AVAIL_ACTIVE_PAGE, AVAIL_TOTAL_SIZE, AVAIL_PROPERTY, EXIST_PROPERTY, AVAIL_SELECTED_PROPERTY, EXIST_SELECTED_PROPERTY}) void remove(); @Override @Command @NotifyChange({AVAIL_ACTIVE_PAGE, AVAIL_TOTAL_SIZE, AVAIL_PROPERTY, EXIST_PROPERTY, AVAIL_SELECTED_PROPERTY, EXIST_SELECTED_PROPERTY}) void removeAll(); static final String EDIT_GROUP_MEMBERS_URL; static final String AVAIL_TOTAL_SIZE; }### Answer:
@Test public void testGetAvailTotalSize(){ assertTrue(viewModel.getAvailTotalSize()>=0); }