@Test
public void testArrivalTime() {

    Context context = getApplicationContext();
    Route route = new MockUtils.MockRouteBuilder().getRoute();
    long currentTimeInMs = new Date().getTime();
    String arrivalTime = RouteUtil.getArrivalTime(context, route, false);
    assertThat(arrivalTime, equalTo(DateFormatterUtil.format(getApplicationContext(),
            new Date(currentTimeInMs + 1000 * DateUtils.SECOND_IN_MILLIS))));
    int penaltyMinutes = 5;
    route = new MockUtils.MockRouteBuilder().setTrafficPenaltyMinutes(penaltyMinutes).getRoute();
    arrivalTime = RouteUtil.getArrivalTime(context, route, true);
    assertThat(arrivalTime, equalTo(DateFormatterUtil.format(getApplicationContext(),
            new Date(currentTimeInMs + penaltyMinutes * DateUtils.MINUTE_IN_MILLIS))));
}