@Test
public void testSettingRouteOptions() {

    final MockUtils.MockRouteOptionsBuilder builder = new MockUtils.MockRouteOptionsBuilder();
    mHazardousMaterialsOptionsPanel.setRouteOptions(builder.withFullHazardousOptions()
            .build());
    final List<OptionItem> items = mHazardousMaterialsOptionsPanel.getOptionItems();
    assertThat(items.size(), equalTo(1));
    MultipleChoiceOptionItem item = (MultipleChoiceOptionItem) items.get(0);
    final List<String> labels = item.getLabels();
    assertThat(labels.size(), equalTo(11));
    List<String> selectedIds = item.getSelectedLabels();
    assertThat(selectedIds.size(), equalTo(11));
    mHazardousMaterialsOptionsPanel.setRouteOptions(builder.withFewHazardousOptions()
            .build());
    selectedIds = item.getSelectedLabels();
    assertThat(selectedIds.size(), equalTo(1));
}