class Inspec::Config

def self.mock(opts = {})

This makes it easy to make a config with a mock backend.
def self.mock(opts = {})
  Inspec::Config.new({ backend: :mock }.merge(opts), StringIO.new("{}"))
end