anchor.diff:          end
         , fun () ->
                   meck:expect(wrq, path_info, 2, "23"),
  -                {false, _, _} =
  +                {false, _, State} =
                       malformed_request(req, #state{ mode = document
                                                    , path_info = id
                                                    }
                                        ),
  +                23 = State#state.document_id,
                   ok
           end
         ]
  
positive.code: -record(state, { mode = undefined
                 , path_info = undefined
                 , context = undefined
                 }
         ).
  
  
negative.code:     case string:to_integer(wrq:path_info(id, Req)) of
          {error, _Reason} ->
              {true, Req, State};
          {Id, []} ->
              {false, Req, State#state{document_id = Id}};
          {_Int, _Rest} ->
              {true, Req, State}
      end;
  