@Test
public void testWhenManeuverForRouteRecalculation() {

    mGuidanceManeuverView.setViewState(GuidanceManeuverView.State.UPDATING);
    final TextView distanceView = (TextView) mGuidanceManeuverView.findViewById(R.id.distanceView);
    final TextView infoView1 = (TextView) mGuidanceManeuverView.findViewById(R.id.infoView1);
    final TextView infoView2 = (TextView) mGuidanceManeuverView.findViewById(R.id.infoView2);
    final ImageView iconView = (ImageView) mGuidanceManeuverView.findViewById(R.id.maneuverIconView);
    final ProgressBar busyProgressBar = (ProgressBar) mGuidanceManeuverView.findViewById(
            R.id.busyStateProgressBar);
    final TextView defaultView = mGuidanceManeuverView.findViewById(R.id.defaultViewText);
    // null data should be hidden.
    assertEquals(distanceView.getVisibility(), View.GONE);
    assertEquals(infoView1.getVisibility(), View.GONE);
    assertEquals(defaultView.getVisibility(), View.VISIBLE);
    assertThat(defaultView.getText().toString(), is(getString(R.string.msdkui_maneuverpanel_updating)));
    assertEquals(infoView2.getVisibility(), View.GONE);
    assertEquals(iconView.getVisibility(), View.INVISIBLE);
    assertEquals(busyProgressBar.getVisibility(), View.VISIBLE);
}