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:                         SshPid ! ssh_start,
                          success
                   end,
      ErlexecRun = fun(Cmd, _Params) ->
                           case Cmd of
                               "ls" ->
                                   {ok, [{stdout, [<<"{\"result\":\"ok\", \"credentials\":[], \"state\":\"test\"}">>]}]};
                               _ ->
                                   {ok, [{stdout, [<<"something else">>]}]}
                           end
  
                   end,
  
      ok = meck:expect(watts_service, get_info ,InfoFun),
      ok = meck:expect(ssh, connect ,ConnectFun),
      ok = meck:expect(ssh, close ,CloseFun),
      ok = meck:expect(ssh_connection, session_channel, ChannelFun),
      ok = meck:expect(ssh_connection, exec, ExecFun),
      ok = meck:expect(exec, run, ErlexecRun),
  
      {ok, {SshPid, MeckModules}}.
  
  
  