@Test
public void testUrlFragmentIsRemoved() throws Exception, BadFetchError {

    final String uriString = BASE_URL + "#thisIsTheFragment";
    final URI uri = new URI(uriString);
    final Collection<KeyValuePair> parameters = Collections.emptyList();
    strategy.getInputStream(SESSION_ID, uri, RequestMethod.GET, TIMEOUT, parameters);
    // Verify that fragment is removed from URI string
    String httpRequestString = captureHttpRequestString();
    assertEquals(BASE_URL, httpRequestString);
}