anchor.diff:                  ->
                       ?assertEqual(?ERROR_SPACE_NOT_SUPPORTED_BY(Provider2DomainBin), Result);
                   (_TestCaseCtx, {ok, Result}) ->
  -                    ?assertEqual(#{<<"metadata">> => RdfMetadata}, Result)
  +                    ?assertEqual(#{<<"metadata">> => ?RDF_METADATA_1}, Result)
               end
           }
       ])).
   
   
  --define(DIR_LAYER_1_JSON_METADATA, #{
  -    <<"attr1">> => 1,
  -    <<"attr2">> => #{
  -        <<"attr21">> => <<"val21">>,
  -        <<"attr22">> => <<"val22">>
  -    }
  -}).
  --define(DIR_LAYER_2_JSON_METADATA, <<"metadata">>).
  --define(DIR_LAYER_3_JSON_METADATA, #{
  -    <<"attr2">> => #{
  -        <<"attr22">> => [1, 2, 3],
  -        <<"attr23">> => <<"val23">>
  -    },
  -    <<"attr3">> => <<"val3">>
  -}).
  --define(DIR_LAYER_4_JSON_METADATA, #{
  -    <<"attr3">> => #{
  -        <<"attr31">> => null
  -    }
  -}).
  --define(DIR_LAYER_5_JSON_METADATA, #{
  -    <<"attr3">> => #{
  -        <<"attr32">> => [<<"a">>, <<"b">>, <<"c">>]
  -    }
  -}).
  -
  -
   get_json_metadata_test(Config) ->
       [Provider2, Provider1] = Providers = ?config(op_worker_nodes, Config),
       Provider2DomainBin = ?GET_DOMAIN_BIN(Provider2),
  
positive.code:     RootDirPath = filename:join(["/", ?SPACE_2, ?SCENARIO_NAME]),
      {ok, _RootDirGuid} = lfm_proxy:mkdir(Provider2, UserSessId, RootDirPath, 8#777),
  
      RdfMetadata = <<"<rdf>metadata</rdf>">>,
  
      DirWithoutRdfMetadataPath = filename:join([RootDirPath, <<"dir_without_rdf_metadata">>]),
      {ok, DirWithoutRdfMetadataGuid} = lfm_proxy:mkdir(Provider2, UserSessId, DirWithoutRdfMetadataPath, 8#777),
  
      DirWithRdfMetadataPath = filename:join([RootDirPath, <<"dir_with_rdf_metadata">>]),
      {ok, DirWithRdfMetadataGuid} = lfm_proxy:mkdir(Provider2, UserSessId, DirWithRdfMetadataPath, 8#777),
      lfm_proxy:set_metadata(Provider2, UserSessId, {guid, DirWithRdfMetadataGuid}, rdf, RdfMetadata, []),
  
      RegularFileWithoutRdfMetadataPath = filename:join([RootDirPath, <<"file_without_rdf_metadata">>]),
      {ok, RegularFileWithoutRdfMetadataGuid} = lfm_proxy:create(Provider2, UserSessId, RegularFileWithoutRdfMetadataPath, 8#777),
  
      RegularFileWithRdfMetadataPath = filename:join([RootDirPath, <<"file_with_rdf_metadata">>]),
      {ok, RegularFileWithRdfMetadataGuid} = lfm_proxy:create(Provider2, UserSessId, RegularFileWithRdfMetadataPath, 8#777),
      lfm_proxy:set_metadata(Provider2, UserSessId, {guid, RegularFileWithRdfMetadataGuid}, rdf, RdfMetadata, []),
  
      SupportedClientsPerNode = #{
          Provider1 => [?USER_IN_SPACE_1_AUTH, ?USER_IN_SPACE_2_AUTH, ?USER_IN_BOTH_SPACES_AUTH],
  
negative.code:                             throw(?ERROR_POSIX(?EACCES));
                          undefined ->
                              json_metadata:merge([
                                  ?JSON_METADATA_1,
                                  ?JSON_METADATA_2,
                                  ?JSON_METADATA_3,
                                  ?JSON_METADATA_4,
                                  ?JSON_METADATA_5
                              ]);
                          _ ->
                              json_metadata:merge([
                                  ?JSON_METADATA_4,
                                  ?JSON_METADATA_5
                              ])
                      end;
                  {true, false} ->
                      ?JSON_METADATA_5;
                  {false, true} ->
                      case ShareId of
                          undefined when Client == ?USER_IN_SPACE_2_AUTH ->
  