anchor.diff:                ?assertEqual([<<"recipe[foo]">>, <<"recipe[bar]">>],
                              ej:get({<<"env_run_lists">>, <<"dev">>}, ProcessedForUpdate))
         end
  +     },
  +     {"Mismatched URL and name for update is invalid",
  +      fun() ->
  +              R = basic_role(),
  +              JSON = jiffy:encode(R),
  +              ?assertThrow({url_json_name_mismatch, _},
  +                           chef_role:parse_binary_json(JSON, {update, <<"wrong-name-here">>}))
  +      end
        }
       ].
   
  
positive.code:     ].
  
  set_created_and_updated_test_() ->
      ActorId = <<"12121212121212121212121212121212">>,
      [?_assertMatch(<<_Year:4/binary, "-", _Month:2/binary, "-", _Day:2/binary,
                       " ", _H:2/binary, ":", _M:2/binary, ":", _S:2/binary>>,
                     (chef_role:set_created(#chef_role{}, ActorId))#chef_role.created_at),
       fun() ->
               Obj = chef_role:set_created(#chef_role{}, ActorId),
               ?assertMatch(<<_Year:4/binary, "-", _Month:2/binary, "-", _Day:2/binary,
                              " ", _H:2/binary, ":", _M:2/binary, ":", _S:2/binary>>,
                            Obj#chef_role.created_at),
               ?assertEqual(Obj#chef_role.created_at, Obj#chef_role.updated_at),
               ?assertEqual(ActorId, Obj#chef_role.last_updated_by)
       end].
  
  query_name_test_() ->
      Tests = [{create_query, insert_role},
  
negative.code:              {list_query, list_roles_for_org},
               {bulk_get_query, bulk_get_roles}],
      [ ?_assertEqual(E, chef_role:F()) || {F, E} <- Tests ].
  
  type_name_test() ->
      ?assertEqual(role, chef_role:type_name(#chef_role{})).
  