@Test
public void testSettingRouteOptions() {

    final MockUtils.MockRouteOptionsBuilder builder = new MockUtils.MockRouteOptionsBuilder();
    mTunnelOptionsPanel.setRouteOptions(builder.withTunnelOptions()
            .build());
    final List<OptionItem> items = mTunnelOptionsPanel.getOptionItems();
    assertThat(items.size(), equalTo(1));
    SingleChoiceOptionItem item = (SingleChoiceOptionItem) items.get(0);
    final List<String> labels = item.getLabels();
    assertThat(labels.size(), equalTo(5));
    String selectedIds = item.getSelectedItemLabel();
    assertThat(selectedIds, equalTo(getString(R.string.msdkui_tunnel_cat_c)));
    mTunnelOptionsPanel.setRouteOptions(builder.withNoTunnelOptions()
            .build());
    selectedIds = item.getSelectedItemLabel();
    assertThat(selectedIds, equalTo(getString(R.string.msdkui_undefined)));
}