@TargetApi(VERSION_CODES.JELLY_BEAN_MR1)
@Config(minSdk = VERSION_CODES.JELLY_BEAN_MR1)
@Test
public void testAccessibility() {

    SwitchItem item = new SwitchItem();
    item.setTitle("TestTitle");
    item.setSummary("TestSummary");
    View view = LayoutInflater.from(application).inflate(R.layout.suw_items_switch, null);
    item.onBindView(view);
    final View titleView = view.findViewById(R.id.suw_items_title);
    assertEquals("Title view should label for switch",
            R.id.suw_items_switch, titleView.getLabelFor());
}