// Note we are trying to restore restoring another different view with a token from the previous view.
// It should return null and later throw ViewExpiredException
// In client side state saving, the encoded viewId inside the state should be compared against the passed one.
// as parameter.
Object value = stateCache.restoreSerializedView(facesContext, "/view2.xhtml", firstSavedToken);
Assert.assertNull(value);
}
finally
{