Following and adapting this blog post, I\'ve been trying to produce a solution which should allow testing of a function which reads env vars (using System.Environment.lookupEnv)