@Test
public void testGetEncodedParameter_returnsExactAsGivenInQueryString() throws Exception {

    final String url = "url";
    final String name = "name";
    String encodedValue1 = NaiveUrlEncoder.encode("do not alter!");
    final String queryString = name + "=" + encodedValue1;
    final HttpRequest request = new HttpRequest(url, queryString);
    assertThat(request.getEncodedParameter(name), equalTo(encodedValue1));
}