  @Test public void ignoredViewTypeIsNotRecycled() {

    LinearLayout container = new LinearLayout(context);
    TextView child = new TextView(context);
    container.addView(child);

    RecyclingPagerAdapter adapter = new RecyclingPagerAdapter(recycleBin) {
      @Override public int getItemViewType(int position) {
        return IGNORE_ITEM_VIEW_TYPE;
      }

      @Override public View getView(int position, View convertView, ViewGroup container) {
        throw new AssertionError("getView should not have been called.");
      }

      @Override public int getCount() {
        throw new AssertionError("getCount should not have been called.");
      }
    };
    verify(recycleBin).setViewTypeCount(1);

    adapter.destroyItem(container, 0, child);
    verifyNoMoreInteractions(recycleBin);
  }