@Test
public void removeNonExistentQueryParameter() {

  Uri uri = Uri.parse("http://uri");
  assertThat(removeQueryParameter(uri, "foo").toString()).isEqualTo("http://uri");
  uri = Uri.parse("http://uri?query=value");
  assertThat(removeQueryParameter(uri, "foo").toString()).isEqualTo("http://uri?query=value");
}