### Question:
VPRendererAdapter extends PagerAdapter { @Override public int getCount() { return collection.size(); } VPRendererAdapter(RendererBuilder<T> rendererBuilder);  VPRendererAdapter(RendererBuilder<T> rendererBuilder, AdapteeCollection<T> collection); @Override Object instantiateItem(ViewGroup parent, int position); @Override void destroyItem(ViewGroup container, int position, Object object); @Override boolean isViewFromObject(View view, Object o); @Override int getCount(); T getItem(int position); boolean add(T element); boolean remove(Object element); void addAll(Collection<? extends T> elements); boolean removeAll(Collection<?> elements); void clear(); void setCollection(AdapteeCollection<T> collection);  }### Answer:
@Test public void shouldBeEmptyWhenItsCreatedWithJustARendererBuilder() { VPRendererAdapter<Object> adapter = new VPRendererAdapter<Object>(mockedRendererBuilder); assertEquals(0, adapter.getCount()); }
@Test public void shouldReturnCollectionSizeOnGetCount() { when(mockedCollection.size()).thenReturn(ANY_SIZE); assertEquals(ANY_SIZE, adapter.getCount()); }