@Test
public void testCreationWithTrafficWarningSectionVisible() {

    AttributeSet attributeSet = Robolectric.buildAttributeSet()
            .addAttribute(R.attr.visibleSection, "trafficWarning")
            .build();
    RouteDescriptionItem item = new RouteDescriptionItem(getContextWithTheme(), attributeSet);
    assertNotNull(item);
    assertTrue(item.isSectionVisible(RouteDescriptionItem.Section.TRAFFIC_WARNING));
}