anchor.diff:                                              ?RIAK_TYPE_AND_BUCKET,
                                               Oid),
               NewObj = riakc_obj:update_value(Obj, Data),
  -            R = riakc_pb_socket:put(Pid, NewObj),
  -            R
  +            riakc_pb_socket:put(Pid, NewObj)
       end.
   
   %% ====================================================================
  
positive.code: 
  %% @doc Get a value from riak by bucket type, bucket and key. Return string.
  -spec get(pid(), object_oid()) -> {ok, map()}|{error, term()}.
  get(Pid, Oid) when is_pid(Pid); is_binary(Oid) ->
  %    ?nebMsg("Entry"),
      case riakc_pb_socket:get(Pid, ?RIAK_TYPE_AND_BUCKET, Oid) of
                  {ok, Object} ->
  
negative.code:     ?assertException(error, function_clause, delete(Pid, not_a_list)),
      meck:unload(riakc_pb_socket).
  
  search_test() ->
      Pid = self(),
      Path = ?TestSystemDomainHash ++ "/system_configuration/"++ "domain_maps",
      TestBinary = ?TestBinary,
      TestSearchResults_1_Result = ?TestSearchResults_1_Result,
      TestMap = jsx:decode(TestBinary, [return_maps]),
      TestQuery = ?TestQuery2,
      TestRiakObject = ?TestRiakObject,
      TestOid = ?TestOid,
      meck:new(riakc_pb_socket, [non_strict]),
      meck:new(riakc_obj, [non_strict]),
      meck:expect(riakc_pb_socket, get, [Pid, {<<"cdmi">>, <<"cdmi">>}, TestOid], {ok, TestRiakObject}),
      meck:expect(riakc_obj, get_value, [TestRiakObject], TestBinary),
  
      meck:expect(riakc_pb_socket, search, [Pid, ?CDMI_INDEX, TestQuery], {ok, TestSearchResults_1_Result}),
      ?assertMatch({ok, TestMap}, execute_search(Pid, TestQuery)),
      ?assertMatch({ok, TestMap}, search(Path, {Pid, maps:new()})),
      ?assertMatch({ok, TestMap}, get_domain_maps(Pid, Path)),
  
      meck:expect(riakc_pb_socket, search, [Pid, ?CDMI_INDEX, TestQuery], {ok, ?TestSearchResults_0_Result}),
      ?assertMatch({error, 404}, execute_search(Pid, TestQuery)),
  
      meck:expect(riakc_pb_socket, search, [Pid, ?CDMI_INDEX, TestQuery], {ok, ?TestSearchResults_2_Result}),
      ?assertMatch({error, 500}, execute_search(Pid, TestQuery)),
  
      meck:expect(riakc_pb_socket, search, [Pid, ?CDMI_INDEX, TestQuery], {error, not_found}),
      ?assertMatch({error, 404}, execute_search(Pid, TestQuery)),
      
      ?assertException(error, function_clause, execute_search(not_a_pid, TestQuery)),
      ?assertException(error, function_clause, execute_search(Pid, not_a_list)),
  
      meck:unload(riakc_obj),
      meck:unload(riakc_pb_socket).
  
  get_test() ->
      Pid = self(),
  