/**
 * @overview Create a mock response object.
 * @returns {object} - Mock object.
 *
 */
module.exports = function (data) {
    return {
        headers: {
            'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
            'accept-encoding': 'gzip,deflate,sdch',
            'accept-language': 'en-US,en;q=0.8',
            'Cache-control': 'no-cache',
            'connection': 'keep-alive',
            'host': 'localhost:',
            'pragma': 'no-cache',
            'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36'
        },
        url: data.url || 'foo/bar/baz',
        params: data.params || {},
        connection: {},
        param: function (key) {
            return null;
        }
    };
};