RouteUtil { public static Spannable getTimeToArrive(final Context context, final Route route, final boolean isTraffic) { return SpannableString.valueOf(TimeFormatterUtil.format(context, getTta(route, isTraffic))); } private  RouteUtil(); static String getLongestRoadSegments(final Route route); static Spannable getTrafficDelayed(final Context context, final Route route); static String getArrivalTime(final Context context, final Route route, final boolean isTraffic); static String getRouteLength(final Context context, final Route route,
                                        final UnitSystem unitSystem); static Spannable getDetails(final Context context, final Route route,
                                       final UnitSystem unitSystem); static Spannable getTimeToArrive(final Context context, final Route route, final boolean isTraffic); static Integer getIcon(final Route route); static List<SectionModel> getSectionBar(final Context context, final Route route);  }
@Test public void testTime() { Spannable spannable = RouteUtil.getTimeToArrive(getApplicationContext(), new MockUtils.MockRouteBuilder().getRoute(), false); assertThat(spannable.toString(), equalTo(TimeFormatterUtil.format(getApplicationContext(), 1000 * DateUtils.SECOND_IN_MILLIS))); }