ManeuverListAdapter extends RecyclerView.Adapter<ManeuverListAdapter.ViewHolder> { @Override public int getItemCount() { return mManeuverList.size(); } ManeuverListAdapter(final List<Maneuver> maneuverList); void setUnitSystem(UnitSystem unitSystem); UnitSystem getUnitSystem(); @Override ViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType); @Override void onBindViewHolder(final ViewHolder holder, final int position); @Override int getItemCount();  }
@Test public void itemCount() { final Maneuver maneuver = MockUtils.mockManeuver(); mManeuverListAdapter = new ManeuverListAdapter(Arrays.asList(maneuver, maneuver)); assertThat(mManeuverListAdapter.getItemCount(), equalTo(2)); }