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