// 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 server side state saving, the hashCode of the viewId should be part of the key used to restore
// the state, along with a counter.
Object value = stateCache.restoreSerializedView(facesContext, "/view2.xhtml", firstSavedToken);
Assert.assertNull(value);
}
finally
{