@Test
public void testGettingRouteOptionsWhenMainItemIsUnselected() {

    final MockUtils.MockRouteOptionsBuilder builder = new MockUtils.MockRouteOptionsBuilder();
    final RouteOptions mockRouteOptions = builder.withFullHazardousOptions()
            .build();
    mTruckOptionsPanel.setRouteOptions(mockRouteOptions);
    doAnswer(new AnswerGetRouteOptions(RouteOptions.TruckRestrictionsMode.NO_VIOLATIONS)).when(mockRouteOptions)
            .setTruckRestrictionsMode(any(RouteOptions.TruckRestrictionsMode.class));
    final List<OptionItem> items = mTruckOptionsPanel.getOptionItems();
    BooleanOptionItem booleanOptionItem = (BooleanOptionItem) items.get(items.size() - 1);
    booleanOptionItem.setChecked(false);
}