I assume that ensuring navigation works before restore view is the goal of this fix, so I think if you wanted, you could just navigate to a normal JSF page, without Rewrite annotations, and verify that navigation succeeded. E.g. Navigate to a page that contains "SUCCESS" and check for that page content in the test class. (And possibly also verify the outbound rewriting with an `<h:link>":

`assertTrue(action.getResponseContent().contains("SUCCESS!"));
assertTrue(action.getResponseContent().matches(".*href=\""+action.getContextRoot()+"/\""));`

Or something like that...

You could also assert on the current browser URL in the test case:

`Assert.assertEquals("/navigation-success.xhtml", action.getCurrentContextRelativeURL());`