anchor.diff:                 Expected = entity({[{<<"name">>, <<"production">>}]}, <<"environment">>, <<"production">>),
                  ?assertEqual(Expected, Ret)
                end},
  +     {"group entity info",
  +      fun() -> State = #group_state{group_data = {[{<<"name">>,<<"sysadmins">> }]} },
  +               meck:expect(chef_wm_util,extract_from_path, fun(group_name, req) -> undefined end),
  +               Ret = oc_chef_action:extract_entity_info(req, State),
  +               Expected = entity({[{<<"name">>, <<"sysadmins">>}]}, <<"group">>, <<"sysadmins">>),
  +               ?assertEqual(Expected, Ret)
  +             end},
        {"node entity info",
         fun() -> State = #node_state{node_data = {[{<<"name">>,<<"node-foo">> }]} },
                  meck:expect(chef_wm_util,object_name, fun(node, req) -> undefined end),
  
positive.code:     {<<"requestor_name">>, <<"rob">>},
      {<<"requestor_type">>, <<"user">>},
      {<<"user_agent">>, <<"knife 11.10.0">>},
      {<<"task">>, <<"create">>},
      {<<"entity_type">>, <<"node">>},
      {<<"entity_name">>, <<"db">>},
      {<<"data">>, {[{<<"name">>,<<"db">>}]}}
  
negative.code:             %% format is always: expected, actual
              AssertPublishDataCorrect = fun(_ServerName, RoutingKey, Data) ->
                  ?assertEqual(<<"erchef.node.create">>, RoutingKey),
                  ?assertEqual(msg(<<"create">>), Data)
              end,
              meck:expect(bunnyc, publish, AssertPublishDataCorrect),
              oc_chef_action_queue:publish(<<"erchef.node.create">>, msg(<<"create">>))
         end
        }
        ]}.
  