anchor.diff:          exit(Sup, kill)
       end.
       
  +
  +eqc_test() ->
  +    TestDir = "test/raptor-backend",
  +    Cleanup = fun(_State,_OldS) ->
  +                      os:cmd("rm -rf " ++ TestDir),
  +                      catch raptor_monitor:restart()
  +              end,
  +    error_logger:tty(false),
  +    application:load(raptor),
  +    application:set_env(raptor, raptor_backend_root, TestDir),
  +    ok = riak_core_util:start_app_deps(raptor),
  +    application:start(raptor),
  +    error_logger:tty(true),
  +    try
  +        index_backend_eqc:test(?MODULE, false, [], Cleanup)
  +    after
  +        application:stop(raptor)
  +    end.
  +
  +
   -endif.
  
positive.code: do_index(Partition, Index, Field, Term, DocId, Props) ->
      {ok, Conn} = riak_sock_pool:checkout(?CONN_POOL),
      try
          raptor_conn:index(Conn,
                            to_binary(Index),
                            to_binary(Field),
                            to_binary(Term),
                            to_binary(DocId),
                            Partition,
                            term_to_binary(Props),
                            current_key_clock())
      after
          riak_sock_pool:checkin(?CONN_POOL, Conn)
      end,
  
negative.code: %% @doc Start this backend.
  start(Partition, _Config) ->
      {ok, #state { partition=Partition }}.
          
  
  %% @spec stop(state()) -> ok | {error, Reason :: term()}
  stop(_State) ->
  