@Test
public void testGetEncodedParameter_handlesMultipleValuesOnQueryString() throws Exception {

    final String url = "url";
    final String queryString = "k1=v1&k2=v2&k3=v3";
    final Map<String, List<String>> parametersMap = new HashMap<>();
    final HttpRequest request = new HttpRequest(url, parametersMap, queryString);
    assertThat(request.getEncodedParameter("k1"), equalTo("v1"));
    assertThat(request.getEncodedParameter("k2"), equalTo("v2"));
    assertThat(request.getEncodedParameter("k3"), equalTo("v3"));
}