### Question:
ListMixin implements Mixin { public void setAdapter(ListAdapter adapter) { final ListView listView = getListViewInternal(); if (listView != null) { listView.setAdapter(adapter); } } ListMixin(@NonNull TemplateLayout layout, @Nullable AttributeSet attrs,
            @AttrRes int defStyleAttr); ListView getListView(); void onLayout(); ListAdapter getAdapter(); void setAdapter(ListAdapter adapter); @Deprecated void setDividerInset(int inset); void setDividerInsets(int start, int end); @Deprecated int getDividerInset(); int getDividerInsetStart(); int getDividerInsetEnd(); Drawable getDivider();  }### Answer:
@Test public void testSetAdapter() { assertNull(mListView.getAdapter()); ListMixin mixin = new ListMixin(mTemplateLayout, null, 0); mixin.setAdapter(mAdapter); assertSame(mAdapter, mListView.getAdapter()); }