@Test
public void wiresWrapperUpToRequest() throws Exception {

    final Flag f = new Flag();
    ServiceWrapper wrapper = new NullWrapper(f);
    expect(mockBackend.execute(isA(HttpHost.class), isA(HttpRequest.class), isA(HttpContext.class)))
        .andReturn(resp);
    expect(mockFactory.getWrapperWithName(isA(String.class))).andReturn(wrapper);
    replayMocks();
    impl.execute(host, req, ctx);
    verifyMocks();
    assertTrue(f.set);
}