MapboxDirections extends
  MapboxService<DirectionsResponse, DirectionsService> { public static Builder builder() { return new AutoValue_MapboxDirections.Builder() .baseUrl(Constants.BASE_API_URL) .profile(DirectionsCriteria.PROFILE_DRIVING) .user(DirectionsCriteria.PROFILE_DEFAULT_USER) .geometries(DirectionsCriteria.GEOMETRY_POLYLINE6); } protected  MapboxDirections(); @Override Response<DirectionsResponse> executeCall(); @Override void enqueueCall(final Callback<DirectionsResponse> callback); static Builder builder(); abstract Builder toBuilder();  }
@Test public void build_noAccessTokenExceptionThrown() throws Exception { thrown.expect(IllegalStateException.class); thrown.expectMessage("Missing required properties: accessToken"); MapboxDirections.builder() .origin(Point.fromLngLat(1.0, 1.0)) .destination(Point.fromLngLat(2.0, 2.0)) .build(); }