anchor.diff:                        user_info => UserInfo,
                         params => Params,
                         queue => undefined},
  +
           {error, bad_json_result
           , _} = watts_plugin_runner:request_action(ConfigReq, ReqPid),
           ok = test_util:wait_for_process_to_die(ReqPid,100),
  
positive.code:                    },
                     #{id => <<"local1">>,
                       cmd => <<"ls">>,
                       connection => #{
                         host => undefined,
                         port => 22,
  
negative.code:         ConfigRev = maps:merge(ConfigReq, #{action => revoke,
                                              cred_state => <<"credstate">>}),
          {error, bad_json_result
          , _} = watts_plugin_runner:request_action(ConfigRev, RevPid),
          ok = test_util:wait_for_process_to_die(RevPid,100)
      after
          ok = stop_meck(Meck)
      end,
      ok.
  
  request_env_test() ->
      {ok, Meck} = start_meck(),
      try
          ServiceId = <<"local2">>,
          {ok, UserInfo0} = watts_userinfo:new(),
          {ok, UserInfo1} = watts_userinfo:update_iss_sub(<<"iss">>, <<"sub">>, UserInfo0),
          {ok, UserInfo} = watts_userinfo:update_access_token(#{token => <<"at">>}, UserInfo1),
          Params = [],
          {ok, ReqPid} = watts_plugin_runner:start(),
  
          ConfigReq = #{action => request,
                        service_id => ServiceId,
                        user_info => UserInfo,
                        params => Params,
                        queue => undefined},
  
          {ok, _
          , _} = watts_plugin_runner:request_action(ConfigReq, ReqPid),
          ok = test_util:wait_for_process_to_die(ReqPid,100),
  
          {ok, RevPid} = watts_plugin_runner:start(),
          ConfigRev = maps:merge(ConfigReq, #{action => revoke,
                                              cred_state => <<"credstate">>}),
          {ok, _
          , _} = watts_plugin_runner:request_action(ConfigRev, RevPid),
          ok = test_util:wait_for_process_to_die(RevPid,100)
      after
  