anchor.diff:          }
       }.
   
  +query_filtered_replication_test_() ->
  +    Pairs = [{local, local}, {local, remote},
  +             {remote, local}, {remote, remote}],
  +    {
  +        "Filtered with query replication tests",
  +        {
  +            foreachx,
  +            fun setup/1, fun teardown/2,
  +            [{Pair, fun should_succeed_with_query/2} || Pair <- Pairs]
  +        }
  +    }.
  +
   should_succeed({From, To}, {_Ctx, {Source, Target}}) ->
       RepObject = {[
           {<<"source">>, db_url(From, Source)},
  
positive.code:     ]}),
      Doc2 = couch_doc:from_json_obj({[
          {<<"_id">>, <<"doc2">>},
          {<<"value">>, 2}
  
      ]}),
  
negative.code:         {<<"value">>, 3}
  
      ]}),
      Doc4 = couch_doc:from_json_obj({[
          {<<"_id">>, <<"doc4">>},
          {<<"class">>, <<"arthropods">>},
          {<<"value">>, 2}
  
      ]}),
      {ok, _} = couch_db:update_docs(Db, [DDoc, Doc1, Doc2, Doc3, Doc4]),
      couch_db:ensure_full_commit(Db),
      couch_db:close(Db).
  
  