SmartRegisterPaginatedAdapter extends BaseAdapter { @Override public Object getItem(int i) { return filteredClients.get(i); } 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 getItemShouldReturnRespectiveItem() { SmartRegisterPaginatedAdapter adapter = getAdapterWithFakeClients(50); assertEquals(((ECClient) adapter.getItem(0)).name(), "Name0"); assertEquals(((ECClient) adapter.getItem(49)).name(), "Name49"); }