Perhaps, I wasn't clear on what I meant by inlining.  My definition of inlining is there is no need to create separate utility or routine (GetMockHttpRequest in this case) but rather inject these codes into the caller as is.   We have sub-routine to help making codes more readable or to be able to share them.  This is neither (hence, preferably just inline them).