anchor.diff:      [Address1, _] = ?config(restAddresses, Config),
       RegisterParams = {Address1, ?CONTENT_TYPE_HEADER, []},
   
  +    % given
       {ProviderID1, SubscribeParams1} = rest_utils:register_provider(?URLS1, ?REDIRECTION_POINT1, ?CLIENT_NAME1, RegisterParams),
       {ProviderID2, SubscribeParams2} = rest_utils:register_provider(?URLS2, ?REDIRECTION_POINT2, ?CLIENT_NAME2, RegisterParams),
       First = ?getFirstSeq(Node1, Config),
   
  +    % when
       SpaceKey1 = <<"spacekey1">>,
       SpaceDoc1 = #document{key = SpaceKey1, value = #space{name = <<"space1">>, providers = [ProviderID1]}},
       ?assertEqual({ok, SpaceKey1}, rpc:call(Node1, space, save, [SpaceDoc1])),
  
positive.code:     end).
  
  -define(CONTENT_TYPE_HEADER, [{<<"content-type">>, <<"application/json">>}]).
  
  -define(URLS1, [<<"127.0.0.1">>]).
  -define(URLS2, [<<"127.0.0.2">>]).
  
negative.code:     subscribe(0, <<"endpoint1">>, SubscribeParams1),
      subscribe(0, <<"endpoint2">>, SubscribeParams2),
  
      % then
      verify_communication(Node1, <<"endpoint1">>, [
          space_msg(First + 1, SpaceDoc1),
          space_msg(First + 2, SpaceDoc2),
          space_msg(First + 4, SpaceDoc4),
          space_msg(First + 5, SpaceDoc5),
          space_msg(First + 6, SpaceDoc6)
      ], [
          space_msg(First + 3, SpaceDoc3)
      ]),
      verify_communication(Node1, <<"endpoint2">>, [
          space_msg(First + 2, SpaceDoc2),
          space_msg(First + 4, SpaceDoc4)
      ], [
          space_msg(First + 1, SpaceDoc1),
          space_msg(First + 3, SpaceDoc3),
          space_msg(First + 5, SpaceDoc5),
          space_msg(First + 6, SpaceDoc6)
      ]),
      ok.
  
  
  