@Before
public void setUp() throws Exception {
mockParser = createMock(XhtmlParser.class);
mockBuilder = createMock(RequestBuilder.class);
mockClient = createMock(XhtmlHttpClient.class);
impl = new XhtmlNavigator(mockParser, mockBuilder, mockClient);
doc = new Document();
context = new URL("http://foo.example.com/");
initState = new XhtmlApplicationState(context, null, doc);
success = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
newState = new XhtmlApplicationState(null, success, null);