@Test
public void testUIInit() {

    final TextView etaView = mEstimatedArrivalView.findViewById(R.id.eta);
    final TextView distanceView = mEstimatedArrivalView.findViewById(R.id.distance);
    final TextView durationView = mEstimatedArrivalView.findViewById(R.id.duration);
    final TextView dotView = mEstimatedArrivalView.findViewById(R.id.dot);
    assertThat(etaView.getText().toString(), is(getString(R.string.msdkui_value_not_available)));
    assertThat(distanceView.getText().toString(), is(getString(R.string.msdkui_value_not_available)));
    assertThat(durationView.getText().toString(), is(getString(R.string.msdkui_value_not_available)));
    assertThat(dotView.getText().toString(), is(getString(R.string.msdkui_bullet)));
    GuidanceEstimatedArrivalViewData data = new GuidanceEstimatedArrivalViewData(ETA_DATE, DISTANCE, DURATION);
    // create proper data to see if everything is fine.
    mEstimatedArrivalView.setEstimatedArrivalData(data);
    // since no data is null, all view should be visible.
    assertEquals(etaView.getVisibility(), View.VISIBLE);
    assertEquals(distanceView.getVisibility(), View.VISIBLE);
    assertEquals(durationView.getVisibility(), View.VISIBLE);
    assertEquals(dotView.getVisibility(), View.VISIBLE);
    // verify the data
    assertThat(etaView.getText(), is(equalTo(DateFormatterUtil.format(getApplicationContext(), ETA_DATE))));
    assertThat(distanceView.getText(), is(equalTo("10 km")));
    assertThat(durationView.getText(), is("2 min"));
}