### Question:
NamesAdapter extends BaseAdapter { @Override public int getCount() { return names.size(); } 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 testGetCount() throws Exception { assertThat(namesAdapter.getCount(), equalTo(names.size())); }