mockIt = function (errorMessage) {
        var defer = $q.defer();
        if (this.throwsError) {
            defer.reject(errorMessage);
        } else {
            defer.resolve();
        }
        return defer.promise;
    }
@ngdoc service
@name ngCordovaMocks.cordovaFileTransfer

@description
A service for testing download and upload
in an app build with ngCordova.