@Test public void addPathToUrl() {

  String expected = "https://plex.tv/library/1337/metadata";
  HttpUrl url = Urls.addPathToUrl(HttpUrl.parse("https://plex.tv/"), "/library/1337/metadata");
  String actual = url.toString();
  assertThat(actual, is(expected));
}