Calling method: If you see this implementation, we must need to have the runAs method having parameter of type container. So before calling this method we need to add all needed inputs to the container and pass the container as arguments.
In this example we are generating outbound file using Runas method under different account.