@Test
public void testGetTimeToArrival() {

    RouteTta mockRouteTta = mock(RouteTta.class);
    when(mNavigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, false)).thenReturn(null);
    assertNull(mBaseGuidancePresenter.getTimeToArrival());
    when(mNavigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, false)).thenReturn(mockRouteTta);
    mBaseGuidancePresenter.getTimeToArrival();
    verify(mockRouteTta).getDuration();
}