### Question:
NamesAdapter extends BaseAdapter { @Override public Object getItem(int position) { return names.get(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 testGetItem() throws Exception { assertThat((String) namesAdapter.getItem(0), equalTo("Lauren Conrad")); assertThat((String) namesAdapter.getItem(1), equalTo("Heidi Montag")); assertThat((String) namesAdapter.getItem(2), equalTo("Kim Kardashian")); }