EasyMock.verify(mockFactory);
}
@Test
public void testDelegatesRequestExecutionToHelpers() throws Exception {
XhtmlApplicationState state = new XhtmlApplicationState(null,null,null);
HttpGet get = new HttpGet("http://foo.example.com/");
URL context = new URL("http://foo.example.com/");
XhtmlResponseHandler rh = new XhtmlResponseHandler(context);
EasyMock.expect(mockFactory.get(context)).andReturn(rh);
EasyMock.expect(mockHttpClient.execute(get, rh))
.andReturn(state);
replayMocks();
XhtmlApplicationState result = impl.execute(get);
verifyMocks();
Assert.assertSame(state, result);
}