MapboxDirections extends
  MapboxService<DirectionsResponse, DirectionsService> { private Call<DirectionsResponse> get() { return getService().getCall( ApiCallHelper.getHeaderUserAgent(clientAppName()), user(), profile(), FormatUtils.formatCoordinates(coordinates()), accessToken(), alternatives(), geometries(), overview(), radius(), steps(), bearing(), continueStraight(), annotation(), language(), roundaboutExits(), voiceInstructions(), bannerInstructions(), voiceUnits(), exclude(), approaches(), waypointIndices(), waypointNames(), waypointTargets(), enableRefresh(), walkingSpeed(), walkwayBias(), alleyBias() ); } protected  MapboxDirections(); @Override Response<DirectionsResponse> executeCall(); @Override void enqueueCall(final Callback<DirectionsResponse> callback); static Builder builder(); abstract Builder toBuilder();  }
@Test public void checksParseToListOfListOfDoublesEmptyTrailing() { List<List<Double>> bearings = ParseUtils.parseToListOfListOfDoubles(";;45,90;2,90;"); assertEquals(5, bearings.size()); List<Double> bearing1 = new ArrayList<>(); bearing1.add(45d); bearing1.add(90d); List<Double> bearing2 = new ArrayList<>(); bearing2.add(2d); bearing2.add(90d); assertEquals(null, bearings.get(0)); assertEquals(null, bearings.get(1)); assertEquals(bearing1, bearings.get(2)); assertEquals(bearing2, bearings.get(3)); assertEquals(null, bearings.get(4)); }