MapboxStaticMap { public static Builder builder() { return new AutoValue_MapboxStaticMap.Builder() .styleId(StaticMapCriteria.STREET_STYLE) .baseUrl(Constants.BASE_API_URL) .user(Constants.MAPBOX_USER) .cameraPoint(Point.fromLngLat(0d, 0d)) .cameraAuto(false) .attribution(true) .width(250) .logo(true) .attribution(true) .retina(true) .height(250) .cameraZoom(0) .cameraPitch(0) .cameraBearing(0) .precision(0) .retina(false); }  HttpUrl url(); static Builder builder();  }
@Test public void build_noAccessTokenExceptionThrown() throws Exception { thrown.expect(IllegalStateException.class); thrown.expectMessage("Missing required properties: accessToken"); MapboxStaticMap.builder().build(); }