anchor.diff:      %% purposely have the timeout happen
       %% so that we get called in the prepare
       %% state
  -    {ok, prepare, #state{bucket=Bucket, key=Key}, 0}.
  +    {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
  
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:         {error, notfound}=NotFound ->
              NotFound
      end.
  
  %% ===================================================================
  %% Test API
  %% ===================================================================
  
  -ifdef(TEST).
  
  test_link(Bucket, Key) ->
      gen_fsm:start_link(?MODULE, [test, Bucket, Key], []).
  
  -endif.
  