@Test
public void testGetEncodedParameter_stopsAtUrlFragment() throws Exception {

    final String url = "url";
    final String queryString = "first=&foo=bar#ignore";
    final HttpRequest request = new HttpRequest(url, queryString);
    assertThat(request.getEncodedParameter("foo"), equalTo("bar"));
}