@Test public void shouldRemoveAllOccurencesOfAParamFromItsKey() { QueryTestImpl query = this.query.addParam("city", "paris").addParam("name", "toto").addParam("name", "tata"); query.removeParam("name"); assertThat(query.buildParams().toString()).isEqualTo("?city=paris"); }
@Test public void shouldNotCrashWhenRemovingParamOfNoParam() { QueryTestImpl noParam = this.query; assertThat(noParam.removeParam("toto")).isNotNull(); }