def METHOD_NAME(factory):
    solid = factory('echo "this is a test message: $MY_ENV_VAR"', name="foobar")
    result = wrap_op_in_graph_and_execute(
        solid,
        run_config={"ops": {"foobar": {"config": {"env": {"MY_ENV_VAR": "foobar"}}}}},
    )
    assert result.output_value() == "this is a test message: foobar\n"