ConversationsAdapter extends RecyclerView.Adapter<ConversationViewHolder> { @Override public int getItemCount() { return mConversations.size(); } ConversationsAdapter(@NonNull ConversationViewHolder.OnConversationClickedListener clickedListener); void setSelectionHelper(@NonNull MultiSelectionHelper selectionHelper); void setConversations(List<ExampleConversation> conversations); @NonNull List<ExampleConversation> getSelectedConversations(); @Override ConversationViewHolder onCreateViewHolder(ViewGroup parent, int viewType); @Override void onBindViewHolder(ConversationViewHolder holder, int position); @Override int getItemCount();  }
@Test public void testNewAdapterIsEmpty() { assertEquals(0, mAdapter.getItemCount()); }