MapboxDirections extends
  MapboxService<DirectionsResponse, DirectionsService> { @Nullable abstract String approaches(); protected  MapboxDirections(); @Override Response<DirectionsResponse> executeCall(); @Override void enqueueCall(final Callback<DirectionsResponse> callback); static Builder builder(); abstract Builder toBuilder();  }
@Test public void approaches() throws Exception { List<String> approaches = new ArrayList<>(); approaches.add(APPROACH_UNRESTRICTED); approaches.add(APPROACH_CURB); MapboxDirections mapboxDirections = MapboxDirections.builder() .profile(PROFILE_DRIVING) .origin(Point.fromLngLat(13.4301,52.5109)) .destination(Point.fromLngLat(13.432508,52.501725)) .approaches(approaches) .accessToken(ACCESS_TOKEN) .baseUrl(mockUrl.toString()) .build(); mapboxDirections.setCallFactory(null); Response<DirectionsResponse> response = mapboxDirections.executeCall(); assertEquals(200, response.code()); assertEquals("Ok", response.body().code()); }