anchor.diff:  -include("riak_moss.hrl").
   
   -behaviour(gen_fsm).
  +
  +-ifdef(TEST).
  +-include_lib("eunit/include/eunit.hrl").
  +
  +%% Test API
  +-export([test_link/2]).
  +
  +-endif.
   
   %% API
   -export([start_link/2,
  
positive.code: %% @end
  %%--------------------------------------------------------------------
  start_link(Bucket, Key) ->
      gen_fsm:start_link({local, ?SERVER}, ?MODULE, [Bucket, Key], []).
  
  get_active_manifest(Pid) ->
      gen_fsm:sync_send_event(Pid, get_active_manifest).
  
negative.code:     %% purposely have the timeout happen
      %% so that we get called in the prepare
      %% state
      {ok, prepare, #state{bucket=Bucket, key=Key}, 0};
  init([test, Bucket, Key]) ->
      %% skip the prepare phase
      %% and jump right into waiting command,
      %% creating the "mock" riakc_pb_socket
      %% gen_server here
      {ok, Pid} = riakc_pb_socket_fake:start_link(),
      {ok, waiting_command, #state{bucket=Bucket, key=Key, riakc_pid=Pid}, 0}.
  
  %%--------------------------------------------------------------------
  %% @private
  