### Question:
GenericAdapter extends BaseAdapter { @Override public long getItemId(int i) { return i; } GenericAdapter(List<T> list); @Override int getCount(); @Override T getItem(int i); @Override long getItemId(int i); @Override View getView(int position, View convertView, ViewGroup parent); abstract View getView(T item, View recycleView, ViewGroup parent);  }### Answer:
@Test public void getItemId_shouldReturnIndex() throws Exception { assertThat(adapter.getItemId(666), equalTo(666L)); }