anchor.diff:  %%       },
   %%       {"Test make_search_key/1",
   %%        fun () ->
  -%%                 Pid = self(),
   %%                 Map = maps:from_list([{<<"path">>, <<"/">>},
   %%                                       {<<"objectName">>, <<"/">>},
   %%                                       {<<"domainURI">>, <<"/cdmi_domains/system_domain/">>}
   %%                                       ]),
  -%%                 State = {Pid, Map},
   %%                 SearchKey = "c8c17baf9a68a8dbc75b818b24269ebca06b0f31/",
  -%%                 ?assertMatch(SearchKey, make_search_key(State)),
  +%%                 ?assertMatch(SearchKey, make_search_key(Map)),
   %%                 Map2a = maps:put(<<"objectName">>, <<"/cdmi_domains/">>, Map),
   %%                 Map2b = maps:put(<<"path">>, <<"/cdmi_domains/">>, Map2a),
  -%%                 State2 = {Pid, Map2b},
   %%                 SearchKey2 = "c8c17baf9a68a8dbc75b818b24269ebca06b0f31/cdmi_domains/",
  -%%                 ?assertMatch(SearchKey2, make_search_key(State2)),
  +%%                 ?assertMatch(SearchKey2, make_search_key(Map2b)),
   %%                 Map3a = maps:put(<<"objectName">>, <<"/cdmi_domains/system_domain/">>, Map),
   %%                 Map3b = maps:put(<<"path">>, <<"/cdmi_domains/system_domain/">>, Map3a),
  -%%                 State3 = {Pid, Map3b},
   %%                 SearchKey3 = "c8c17baf9a68a8dbc75b818b24269ebca06b0f31/cdmi_domains/system_domain/",
  -%%                 ?assertMatch(SearchKey3, make_search_key(State3)),
  +%%                 ?assertMatch(SearchKey3, make_search_key(Map3b)),
   %%                 Map4a = maps:put(<<"objectName">>, <<"/cdmi_domains/Fuzzcat/">>, Map),
   %%                 Map4b = maps:put(<<"path">>, <<"/cdmi_domains/Fuzzcat/">>, Map4a),
   %%                 Map4c = maps:put(<<"domainURI">>, <<"/cdmi_domains/Fuzzcat/">>, Map4b),
  -%%                 State4 = {Pid, Map4c},
   %%                 SearchKey4 = "e2f450d94cb7f21e3596f8b953b3ec2791343482/cdmi_domains/Fuzzcat/",
  -%%                 ?assertMatch(SearchKey4, make_search_key(State4)),
  +%%                 ?assertMatch(SearchKey4, make_search_key(Map4c)),
   %%                 Map5a = maps:put(<<"objectName">>, <<"/cdmi_capabilities/">>, Map),
   %%                 Map5b = maps:put(<<"path">>, <<"/cdmi_capabilities/">>, Map5a),
   %%                 Map5c = maps:put(<<"domainURI">>, <<"/cdmi_capabilities/">>, Map5b),
  -%%                 State5 = {Pid, Map5c},
   %%                 SearchKey5 = "e1c36ee8b6b76553d8977eb4737df5b996b418bd/cdmi_capabilities/",
  -%%                 ?assertMatch(SearchKey5, make_search_key(State5)),
  -%%                 ?assertException(error, function_clause, make_search_key(not_a_tuple))
  +%%                 ?assertMatch(SearchKey5, make_search_key(Map5c)),
  +%%                 ?assertException(error, function_clause, make_search_key(not_a_map))
   %%        end
   %%       },
   %%       {"Test put_value/3",
  
positive.code:     list_to_binary(string:to_lower(Uid ++ ?OID_SUFFIX ++ Crc)).
  
  -spec make_search_key(cdmi_state()) -> list().
  make_search_key(State) when is_tuple(State) ->
      ?nebMsg("Entry"),
      {_, Data} = State,
      ObjectName = binary_to_list(get_value(<<"objectName">>, Data)),
      ParentUri = binary_to_list(get_value(<<"parentURI">>, Data, <<"">>)),
      Path = binary_to_list(get_value(<<"path">>, Data, <<"">>)),
  
negative.code: %%                 ?assertException(error, function_clause, put_value(<<"">>, <<"">>, not_a_map))
  %%        end
  %%       },
  %%        {"Test sanitize_body/2",
  %%         fun () ->
  %%                 Body = maps:from_list([{<<"objectID">>, <<"val1">>},
  %%                                        {<<"parentID">>, <<"val2">>},
  %%                                        {<<"parentURI">>, <<"val3">>},
  %%                                        {<<"completionStatus">>, <<"val4">>}
  %%                                       ]),
  %%                 Data = sanitize_body([<<"objectID">>,
  %%                           <<"objectName">>,
  %%                           <<"parentID">>,
  %%                           <<"parentURI">>,
  %%                           <<"completionStatus">>],
  %%                          Body),
  %%                 ?assertMatch(0, maps:size(Data)),
  %%                 ?assertException(error, function_clause, sanitize_body([], not_a_map))
  %%         end
  %%        },
         {"Test set_cache/1",
          fun () ->
                   TestMap = jsx:decode(?TestCreateContainer, [return_maps]),
                   meck:sequence(mcd, set, 4, [{ok, TestMap}, {ok, TestMap}]),
                   ?assertMatch({ok, TestMap}, set_cache(TestMap)),
                   ?assertException(error, function_clause, set_cache(not_a_map))
          end
        }
       ]
      }.
  