@Test
public void testCallback() {

    mSingleChoiceOptionItem.setListener(new OptionItem.OnChangedListener() {
        @Override
        public void onChanged(OptionItem item) {
            mCallbackCalled = true;
        }
    });
    final List<String> ids = Arrays.asList(getString(R.string.msdkui_fastest), getString(R.string.msdkui_allow_car_pool));
    mSingleChoiceOptionItem.setLabels(TITLE, ids);
    assertThat(mSingleChoiceOptionItem.getChildCount(), equalTo(1));
    final View view = mSingleChoiceOptionItem.getChildAt(0);
    final TextView labelView = (TextView) view.findViewById(R.id.single_item_label);
    final Spinner selectionView = (Spinner) view.findViewById(R.id.single_item_value);
    assertNotNull(labelView);
    assertNotNull(selectionView);
    selectionView.setSelection(1);
    assertThat(mCallbackCalled, is(true));
}