anchor.diff:                      end
               end,
   
  +            AllDirectMetadata = #{
  +                ?ACL_KEY => ?ACL_2,
  +                ?MIMETYPE_KEY => ?MIMETYPE_2,
  +                ?TRANSFER_ENCODING_KEY => ?TRANSFER_ENCODING_2,
  +                ?CDMI_COMPLETION_STATUS_KEY => ?CDMI_COMPLETION_STATUS_2,
  +                ?JSON_METADATA_KEY => ?JSON_METADATA_5,
  +                ?RDF_METADATA_KEY => ?RDF_METADATA_2,
  +                ?XATTR_2_KEY => ?XATTR_2_VALUE
  +            },
  +
               AvailableXattrsMap = case {DirectMetadataSet, IncludeInherited} of
                   {true, false} ->
  -                    ?ALL_METADATA_SET_2;
  +                    AllDirectMetadata;
                   {true, true} ->
                       case ShareId of
                           undefined when Client == ?USER_IN_SPACE_2_AUTH ->
  
positive.code:         required = [<<"metadata">>],
          correct_values = #{<<"metadata">> => [
              % Tests setting multiple xattrs at once
              #{?XATTR_1_KEY => ?XATTR_1_VALUE, ?XATTR_2_KEY => ?XATTR_2_VALUE}
              % Tests setting all types of xattr keys
              | lists:map(fun({Key, Val}) -> #{Key => Val} end, maps:to_list(?ALL_METADATA_SET_1))
          ]}
      },
  
  
negative.code:     <<"aceflags">> => <<"0x", (integer_to_binary(?no_flags_mask, 16))/binary>>,
      <<"acemask">> => <<"0x", (integer_to_binary(
          ?read_attributes_mask bor ?read_metadata_mask bor ?read_acl_mask,
          16
      ))/binary>>
  }]).
  -define(ACL_3, [#{
      <<"acetype">> => <<"0x", (integer_to_binary(?allow_mask, 16))/binary>>,
      <<"identifier">> => ?everyone,
      <<"aceflags">> => <<"0x", (integer_to_binary(?no_flags_mask, 16))/binary>>,
      <<"acemask">> => <<"0x", (integer_to_binary(
          ?read_metadata_mask bor ?read_attributes_mask bor ?read_acl_mask bor
              ?write_metadata_mask bor ?write_attributes_mask bor ?delete_mask bor ?write_acl_mask,
          16
      ))/binary>>
  }]).
  