Urls { @Nullable public static String addTranscodeParams(@Nullable String transcodeUrl, int width, int height) { if (Strings.isBlank(transcodeUrl)) { return null; } HttpUrl parsedUrl = HttpUrl.parse(transcodeUrl); if (parsedUrl == null) { return null; } return parsedUrl.newBuilder() .addQueryParameter("width", String.valueOf(width)) .addQueryParameter("height", String.valueOf(height)) .build() .toString(); } private  Urls(); @NonNull static HttpUrl addPathToUrl(@NonNull HttpUrl url, @NonNull String path); @Nullable static String getTranscodeUrl(@NonNull HttpUrl url, @Nullable String imageKey); @Nullable static String addTranscodeParams(@Nullable String transcodeUrl, int width, int height);  }
@Test public void addTranscodeDimensionParamsToUrl() { String expected = "https: String actual = Urls.addTranscodeParams("https: assertThat(actual, is(expected)); }