### Question:
NamesAdapter extends BaseAdapter { @Override public long getItemId(int position) { return position; } NamesAdapter(List<String> names); @Override int getCount(); @Override Object getItem(int position); @Override long getItemId(int position); @Override View getView(int position, View convertView, ViewGroup parent);  }### Answer:
@Test public void testGetItemId() throws Exception { assertThat(namesAdapter.getItemId(0), equalTo(0L)); assertThat(namesAdapter.getItemId(1), equalTo(1L)); assertThat(namesAdapter.getItemId(2), equalTo(2L)); }