@Override
public void call(IOEvent e) {
console1.log("FAILURE. Status: "+e.data().status()+" - "+e.data().statusText(), "", "");
}
}).cast();
IO io1 = Y.newIO(ioConfig);
//send a request.
Response resp = io1.send(uri1, ioConfig);
//send an other - should trigger "failure" event
io1.send(nonExistentUri, ioConfig);
//and now some test with io-queue - see http://yuilibrary.com/yui/docs/io/#queue
// Stop the queue so transactions can be stored.