Not from in container.. as ViewScope is bound to JSF.
But deploying any JSF page that has a ViewScoped bean and using @RunAsClient and simply calling the JSF URL via new URL(..).openStream should invoke the Bean....
maybe you should look into Deltaspike test control module: http://deltaspike.apache.org/documentation/test-control.html
In this kind of integration test you have FaceContext and also CDI scopes active.
Here is a nice example: ee6-ds-demo/PageBeanTest.java at master · os890/ee6-ds-demo · GitHub