RepositoryAdapter extends RecyclerView.Adapter<ViewHolder> implements Updatable { @Override public ViewHolder onCreateViewHolder(final ViewGroup parent, final int layoutResourceId) { return new RecyclerView.ViewHolder( LayoutInflater.from(parent.getContext()).inflate(layoutResourceId, parent, false)) {}; } 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);  }
@Test public void shouldCreateViewHolder() { assertThat(repositoryAdapter.onCreateViewHolder(viewGroup, LAYOUT_ID).itemView, is(view)); }