'Make a L{ProxyClient} object used for testing.
@param request: The request to use.
@param method: The HTTP method to use, GET by default.
@param headers: The HTTP headers to use expressed as a dict. If not
provided, defaults to {\'accept\': \'text/html\'}.
@param requestBody: The body of the request. Defaults to the empty
string.
@return: A L{ProxyClient}'

def makeProxyClient(self, request, method='GET', headers=None, requestBody=''):

    if (headers is None):
        headers = {'accept': 'text/html'}
    path = ('/' + request.postpath)
    return ProxyClient(method, path, 'HTTP/1.0', headers, requestBody, request)
