SmartRegisterPaginatedAdapter extends BaseAdapter { public int pageCount() { return pageCount; } SmartRegisterPaginatedAdapter(SmartRegisterClientsProvider listItemProvider);  SmartRegisterPaginatedAdapter(
            int clientsPerPage, SmartRegisterClientsProvider listItemProvider); @Override int getCount(); @Override Object getItem(int i); @Override long getItemId(int i); @Override View getView(int i, View parentView, ViewGroup viewGroup); int pageCount(); int currentPage(); void nextPage(); void previousPage(); boolean hasNextPage(); boolean hasPreviousPage(); void refreshList(FilterOption villageFilter, ServiceModeOption serviceModeOption,
                            FilterOption searchFilter, SortOption sortOption);  }
@Test public void shouldReturn3PageCountFor50Clients() { SmartRegisterPaginatedAdapter adapter = getAdapterWithFakeClients(50); assertEquals(adapter.pageCount(), 3); }