YUI.add('xdr-mock', function (Y) {    
    var MOCK_DATA = {
        "count": 20,
        "value": {
            "title": "Cycling News",
            "description": "Pipes Output",
            "link": "http:\/\/pipes.yahooapis.com\/pipes\/pipe.info?_id=giWz8Vc33BG6rQEQo_NLYQ",
            "pubDate": "Mon, 23 Dec 2013 20:47:51 +0000",
            "generator": "http:\/\/pipes.yahooapis.com\/pipes\/",
            "callback": "",
            "items": [{
                "title": "Tour de France champion Froome signs new Sky deal (The Associated Press)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=12mnleopq\/*http%3A\/\/sports.yahoo.com\/news\/tour-france-champion-froome-signs-140232953--spt.html",
                "pubDate": "Mon, 23 Dec 2013 06:02:32 PST"
            }, {
                "title": "Cycling-Froome extends contract with Team Sky (Reuters)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=12tnfbotk\/*http%3A\/\/sports.yahoo.com\/news\/cycling-froome-extends-contract-team-sky-130213233--spt.html",
                "pubDate": "Mon, 23 Dec 2013 05:02:13 PST"
            }, {
                "title": "Alonso: Plans to start cycling team 'going well' (The Associated Press)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=12kkjvlru\/*http%3A\/\/sports.yahoo.com\/news\/alonso-plans-start-cycling-team-151134982--spt.html",
                "pubDate": "Fri, 20 Dec 2013 07:11:34 PST"
            }, {
                "title": "Rogers blames tainted food for positive test (The Associated Press)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=12osgoj6v\/*http%3A\/\/sports.yahoo.com\/news\/rogers-blames-tainted-food-positive-121451664--spt.html",
                "pubDate": "Fri, 20 Dec 2013 04:14:51 PST"
            }, {
                "title": "Rogers blames positive test on Chinese food (Reuters)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=12tlrmmtl\/*http%3A\/\/sports.yahoo.com\/news\/rogers-blames-positive-test-chinese-food-110709333--spt.html",
                "pubDate": "Fri, 20 Dec 2013 03:07:09 PST"
            }, {
                "title": "Cycling-Rogers blames positive test on Chinese food (Reuters)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=135ple88e\/*http%3A\/\/sports.yahoo.com\/news\/cycling-rogers-blames-positive-test-chinese-food-105835947--spt.html",
                "pubDate": "Fri, 20 Dec 2013 02:58:35 PST"
            }, {
                "title": "World sports diary from December 21 - December 28 (Reuters)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=130remn1a\/*http%3A\/\/sports.yahoo.com\/news\/world-sports-diary-december-21-december-28-030014135--golf.html",
                "pubDate": "Thu, 19 Dec 2013 19:00:14 PST"
            }, {
                "title": "USA Cycling unveils national championship sites (The Associated Press)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=12ubfsnfb\/*http%3A\/\/sports.yahoo.com\/news\/usa-cycling-unveils-national-championship-180519793--spt.html",
                "pubDate": "Thu, 19 Dec 2013 10:05:19 PST"
            }, {
                "title": "Cycling Australia wants max ban if Rogers guilty (The Associated Press)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=12kge4thg\/*http%3A\/\/sports.yahoo.com\/news\/cycling-australia-wants-max-ban-102413233--spt.html",
                "pubDate": "Thu, 19 Dec 2013 02:24:13 PST"
            }, {
                "title": "Rogers must get maximum ban if guilty: Cycling Australia (Reuters)",
                "link": "http:\/\/us.rd.yahoo.com\/sports\/rss\/sc\/SIG=135tuubl5\/*http%3A\/\/sports.yahoo.com\/news\/rogers-must-maximum-ban-guilty-cycling-australia-090920290--spt.html",
                "pubDate": "Thu, 19 Dec 2013 01:30:42 PST"
            }, {
                "title": "Local youths train for 2014 road cycle racing",
                "link": "http:\/\/www.shorelinebeacon.com\/2013\/12\/16\/local-youths-train-for-2014-road-cycle-racing",
                "pubDate": "Fri, 20 Dec 2013 08:42:01 -0800"
            }, {
                "title": "Top cycling race returning to Shrewsbury",
                "link": "http:\/\/www.shropshirestar.com\/news\/2013\/12\/07\/top-cycling-race-returning-to-shrewsbury\/",
                "pubDate": "Sat, 07 Dec 2013 03:15:34 -0800"
            }, {
                "title": "Villumsen headlines a strong woman\u2019s field",
                "link": "http:\/\/www.scoop.co.nz\/stories\/CU1312\/S00114\/villumsen-headlines-a-strong-womans-field.htm",
                "pubDate": "Wed, 04 Dec 2013 18:25:42 -0800"
            }, {
                "title": "Cycling Championships coming to Columbia County",
                "link": "http:\/\/chronicle.augusta.com\/news\/metro\/2013-12-19\/cycling-championships-coming-columbia-county",
                "pubDate": "Thu, 19 Dec 2013 11:21:02 -0800"
            }, {
                "title": "USA Cycling championship coming to county",
                "link": "http:\/\/newstimes.augusta.com\/sports\/2013-12-22\/usa-cycling-championship-coming-to-county",
                "pubDate": "Sat, 21 Dec 2013 21:06:18 -0800"
            }, {
                "title": "Alonso promises Formula One influences for new team",
                "link": "http:\/\/velonews.competitor.com\/2013\/12\/news\/alonso-promises-formula-one-influences-for-new-team_310885",
                "pubDate": "Mon, 09 Dec 2013 19:42:41 -0800"
            }, {
                "title": "Females to the fore in Tamworth lower grades",
                "link": "http:\/\/www.northerndailyleader.com.au\/story\/1948605\/females-to-the-fore-in-tamworth-lower-grades\/?src=rss",
                "pubDate": "Tue, 03 Dec 2013 09:16:40 -0800"        
            }, {
                "title": "Cycling: Villumsen headlines a strong woman's field",
                "link": "http:\/\/nz.sports.yahoo.com\/news\/article\/-\/20162216\/cycling-villumsen-headlines-a-strong-womans-field\/",
                "pubDate": "Wed, 04 Dec 2013 12:05:04 -0800"
            }, {
                "title": "Gearing up for another big year",
                "link": "http:\/\/www.irishexaminer.com\/sport\/cwojmheycwey\/rss2\/",
                "pubDate": "Sun, 22 Dec 2013 18:53:15 -0800"
            }, {
                "title": "Cyclist Michael Rogers vows to fight doping claims",
                "link": "http:\/\/www.canberratimes.com.au\/sport\/cycling\/cyclist-michael-rogers-vows-to-fight-doping-claims-20131219-2zo7o.html",
                "pubDate": "Thu, 19 Dec 2013 21:46:30 -0800"
            }]
        }
    };

    var ioMock = function (url, config) {
        var startFn = config.on.start,
            successFn = config.on.success;

        startFn();

        Y.later(500, this, successFn, [
            Y.guid(),
            {
                responseText: Y.JSON.stringify(MOCK_DATA)
            }
        ]);
    }

    Y.io = ioMock;
}, '', {
    requires: [
        'json'
    ]
});
