@Test
public void testAddQueryParameters() {

    Map<String, Object> params = new LinkedHashMap<>();
    params.put("foo", "bar");
    params.put("test", Boolean.TRUE);
    params.put("complex param", "this must be encoded");
    params.put("nullValue", null);
    params.put("emptyValue", "");
    String url = "https://test.antenna.org/query";
    String expResult = url + "?foo=bar&test=true&complex+param=this+must+be+encoded&nullValue=&emptyValue=";
    assertThat(HttpUtils.addQueryParameters(url, params)).isEqualTo(expResult);
}