@Test
public void testCreationWithDistanceSectionVisible() {

    AttributeSet attributeSet = Robolectric.buildAttributeSet()
            .addAttribute(R.attr.visible, "distance")
            .build();
    ManeuverItemView item = new ManeuverItemView(getContextWithTheme(), attributeSet);
    assertNotNull(item);
    assertTrue(item.isSectionVisible(ManeuverItemView.Section.DISTANCE));
}