### Question:
RendererAdapter extends BaseAdapter { @Override public int getCount() { return collection.size(); } RendererAdapter(RendererBuilder<T> rendererBuilder);  RendererAdapter(RendererBuilder<T> rendererBuilder, AdapteeCollection<T> collection); @Override int getCount(); @Override T getItem(int position); @Override long getItemId(int position); void setCollection(AdapteeCollection<T> collection); @Override View getView(int position, View convertView, ViewGroup parent); @Override int getItemViewType(int position); @Override int getViewTypeCount(); void add(T element); void remove(Object element); void addAll(Collection<? extends T> elements); void removeAll(Collection<?> elements); void clear();  }### Answer:
@Test public void shouldReturnCollectionSizeOnGetCount() { when(mockedCollection.size()).thenReturn(ANY_SIZE); assertEquals(ANY_SIZE, rendererAdapter.getCount()); }
@Test public void shouldBeEmptyWhenItsCreatedWithJustARendererBuilder() { RendererAdapter<Object> adapter = new RendererAdapter<Object>(mockedRendererBuilder); assertEquals(0, adapter.getCount()); }