mock request method