### Question:
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setSupplementalIcon(@DrawableRes int iconResId, boolean showSupplementalIconDivider) { setSupplementalIconInfo(mContext.getDrawable(iconResId), showSupplementalIconDivider); } SeekbarListItem(Context context); static ViewHolder createViewHolder(View itemView); @Override int getViewType(); void setMax(int max); void setProgress(int progress); void setSecondaryProgress(int secondaryProgress); void setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener listener); void setText(String text); void setPrimaryActionIcon(@DrawableRes int iconResId); void setPrimaryActionIcon(Drawable drawable); void setPrimaryActionIconListener(View.OnClickListener onClickListener); void setPrimaryActionEmptyIcon(); void setSupplementalIcon(@DrawableRes int iconResId,
            boolean showSupplementalIconDivider); void setSupplementalIcon(Drawable drawable, boolean showSupplementalIconDivider); void setSupplementalIconListener(View.OnClickListener listener); @Deprecated void setSupplementalIcon(Drawable drawable, boolean showSupplementalIconDivider,
            @Nullable  View.OnClickListener listener); void setSupplementalEmptyIcon(boolean seekbarOffsetDividerWidth);  }### Answer:
@Test public void testSupplementalIconVisible() { SeekbarListItem item = initSeekbarListItem(); item.setSupplementalIcon(android.R.drawable.sym_def_app_icon, false); setupPagedListView(Arrays.asList(item)); assertThat(getViewHolderAtPosition(0).getSupplementalIcon().getVisibility(), is(equalTo(View.VISIBLE))); assertThat(getViewHolderAtPosition(0).getSupplementalIconDivider().getVisibility(), is(equalTo(View.GONE))); }
@Test public void testSupplementalIconDividerVisible() { SeekbarListItem item = initSeekbarListItem(); item.setSupplementalIcon(android.R.drawable.sym_def_app_icon, true); setupPagedListView(Arrays.asList(item)); assertThat(getViewHolderAtPosition(0).getSupplementalIcon().getVisibility(), is(equalTo(View.VISIBLE))); assertThat(getViewHolderAtPosition(0).getSupplementalIconDivider().getVisibility(), is(equalTo(View.VISIBLE))); }
@Test public void testSupplementalIconNotClickableWithoutListener() { SeekbarListItem item = initSeekbarListItem(); item.setSupplementalIcon(android.R.drawable.sym_def_app_icon, false); setupPagedListView(Arrays.asList(item)); assertFalse(getViewHolderAtPosition(0).getSupplementalIcon().isClickable()); }
@Test public void testSettingSupplementalIconWithDrawable() { Drawable drawable = mActivity.getDrawable(android.R.drawable.sym_def_app_icon); SeekbarListItem item = initSeekbarListItem(); item.setSupplementalIcon(drawable, false); setupPagedListView(Arrays.asList(item)); assertThat(getViewHolderAtPosition(0).getSupplementalIcon().getDrawable(), is(equalTo(drawable))); }