This is a Mock version of the {@link ViewScopedContext}. It will automatically get used instead of it's parent class if we are in the {@link javax.faces.application.ProjectStage#UnitTest}.
There is of course no automatic cleaning if we transit over to the next view! In this case you can use {@link #resetViewMap()} to cleanthe mock ViewMap manually in your unit test.
Attention: The ViewMap is a shared static ConcurrentHashMap, so this implementation is not able to emulate the behaviour of multiple views at the same time!