### Question:
GenericAdapter extends BaseAdapter { @Override public int getCount() { return list.size(); } 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 getCount_shouldReturnListSize() throws Exception { assertThat(adapter.getCount(), equalTo(3)); strings.add("four"); assertThat(adapter.getCount(), equalTo(4)); }