### Question:
RepositoryAdapter extends RecyclerView.Adapter<ViewHolder> implements Updatable { @Override public final int getItemCount() { if (dataInvalid) { reloadAllData(); dataInvalid = false; } return endPositions[partCount - 1]; } RepositoryAdapter(@NonNull final Builder builder); @NonNull static Builder repositoryAdapter(); final void startObserving(); final void stopObserving(); @Override final void update(); @Override final int getItemCount(); @Override final int getItemViewType(final int position); @Override final long getItemId(final int position); @Override ViewHolder onCreateViewHolder(final ViewGroup parent,
      final int layoutResourceId); @Override final void onBindViewHolder(final ViewHolder holder, final int position); @Override boolean onFailedToRecycleView(final ViewHolder holder); @Override void onViewRecycled(final ViewHolder holder);  }### Answer:
@Test public void shouldReturnItemCountFromPresenters() { assertThat(repositoryAdapter.getItemCount(), is(10)); }