### Question:
SwitchItem extends Item implements CompoundButton.OnCheckedChangeListener { @Override protected int getDefaultLayoutResource() { return R.layout.suw_items_switch; } SwitchItem();  SwitchItem(Context context, AttributeSet attrs); void setChecked(boolean checked); boolean isChecked(); void toggle(View view); @Override void onBindView(View view); void setOnCheckedChangeListener(OnCheckedChangeListener listener); @Override void onCheckedChanged(CompoundButton buttonView, boolean isChecked);  }### Answer:
@Test public void testLayout() { Assume.assumeTrue(VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP); SwitchItem item = new SwitchItem(); LayoutInflater inflater = LayoutInflater.from(application); ViewGroup layout = (ViewGroup) inflater.inflate(item.getDefaultLayoutResource(), null); assertThat(layout.getClipToPadding()).isFalse(); }
@Test public void defaultLayout_baselineAligned_shouldBeFalse() { Assume.assumeTrue(VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP); LayoutInflater inflater = LayoutInflater.from(application); SwitchItem item = new SwitchItem(); LinearLayout layout = (LinearLayout) inflater.inflate(item.getDefaultLayoutResource(), null); assertThat(layout.isBaselineAligned()).isFalse(); }