@Test
public void testUIInitWithNullForFieldVisibility() {

    final TextView distanceView = mGuidanceNextManeuverView.findViewById(R.id.nextManeuverDistance);
    final TextView streetName = mGuidanceNextManeuverView.findViewById(R.id.afterNextManeuverStreetName);
    final TextView dotView = mGuidanceNextManeuverView.findViewById(R.id.dot);
    assertEquals(View.GONE, mGuidanceNextManeuverView.getVisibility());
    GuidanceNextManeuverData data = createData(null, null, null);
    // create proper data to see if everything is fine.
    mGuidanceNextManeuverView.setNextManeuverData(data);
    // since distance and icon are correct, panel should be visible.
    assertEquals(mGuidanceNextManeuverView.getVisibility(), View.VISIBLE);
    // verify the data
    assertEquals(View.GONE, distanceView.getVisibility());
    assertEquals(View.GONE, streetName.getVisibility());
    assertEquals(View.GONE, dotView.getVisibility());
}