### Question:
RouteUtils { public boolean isValidRouteProfile(String routeProfile) { return !TextUtils.isEmpty(routeProfile) && VALID_PROFILES.contains(routeProfile); }  boolean isNewRoute(@Nullable RouteProgress previousRouteProgress,
                            @NonNull RouteProgress routeProgress); boolean isNewRoute(@Nullable RouteProgress previousRouteProgress,
                            @NonNull DirectionsRoute directionsRoute); boolean isArrivalEvent(@NonNull RouteProgress routeProgress, @NonNull Milestone milestone); boolean isLastLeg(RouteProgress routeProgress); @Nullable List<Point> calculateRemainingWaypoints(RouteProgress routeProgress); @Nullable String[] calculateRemainingWaypointNames(RouteProgress routeProgress); Location createFirstLocationFromRoute(DirectionsRoute route); boolean isValidRouteProfile(String routeProfile); @Nullable BannerInstructions findCurrentBannerInstructions(LegStep currentStep, double stepDistanceRemaining); @Nullable BannerText findCurrentBannerText(LegStep currentStep, double stepDistanceRemaining,
                                          boolean findPrimary); @Nullable VoiceInstructions findCurrentVoiceInstructions(LegStep currentStep, double stepDistanceRemaining);  }### Answer:
@Test public void isValidRouteProfile_returnsTrueWithDrivingTrafficProfile() throws Exception { String routeProfileDrivingTraffic = DirectionsCriteria.PROFILE_DRIVING_TRAFFIC; RouteUtils routeUtils = new RouteUtils(); boolean isValidProfile = routeUtils.isValidRouteProfile(routeProfileDrivingTraffic); assertTrue(isValidProfile); }
@Test public void isValidRouteProfile_returnsTrueWithDrivingProfile() throws Exception { String routeProfileDriving = DirectionsCriteria.PROFILE_DRIVING; RouteUtils routeUtils = new RouteUtils(); boolean isValidProfile = routeUtils.isValidRouteProfile(routeProfileDriving); assertTrue(isValidProfile); }
@Test public void isValidRouteProfile_returnsTrueWithCyclingProfile() throws Exception { String routeProfileCycling = DirectionsCriteria.PROFILE_CYCLING; RouteUtils routeUtils = new RouteUtils(); boolean isValidProfile = routeUtils.isValidRouteProfile(routeProfileCycling); assertTrue(isValidProfile); }
@Test public void isValidRouteProfile_returnsTrueWithWalkingProfile() throws Exception { String routeProfileWalking = DirectionsCriteria.PROFILE_WALKING; RouteUtils routeUtils = new RouteUtils(); boolean isValidProfile = routeUtils.isValidRouteProfile(routeProfileWalking); assertTrue(isValidProfile); }
@Test public void isValidRouteProfile_returnsFalseWithInvalidProfile() throws Exception { String invalidProfile = "invalid_profile"; RouteUtils routeUtils = new RouteUtils(); boolean isValidProfile = routeUtils.isValidRouteProfile(invalidProfile); assertFalse(isValidProfile); }
@Test public void isValidRouteProfile_returnsFalseWithNullProfile() throws Exception { String nullProfile = null; RouteUtils routeUtils = new RouteUtils(); boolean isValidProfile = routeUtils.isValidRouteProfile(nullProfile); assertFalse(isValidProfile); }