@Test
public void removeFirstQueryParameter() {

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