@Test(expected = BadFetchError.class)
public void testBadFetch() throws Exception, BadFetchError {

    when(httpClient.execute(any())).thenThrow(new IOException("Simulated HTTP IOException"));
    final URI uri = new URI(BASE_URL + "?session=id");
    final Collection<KeyValuePair> parameters = Arrays.asList(
            new KeyValuePair("firstName", "Horst"),
            new KeyValuePair("lastName", "Buchholz")
    );
    strategy.getInputStream(SESSION_ID, uri, RequestMethod.GET, TIMEOUT, parameters);
}