public void addOnPausedListenerTest()
        {
            Debug.Log("DownloadTask addOnPausedListenerTest");

            StorageReference reference        = mAGCStorageManagement.getStorageReference(storageFileName);
            string           downloadFilePath = downloadFileFolder + "addOnPausedListenerTest.cpp";
            File             file             = new File(downloadFilePath);
            DownloadTask     task             = reference.getFile(file);

            task.addOnPausedListener(new MyPausedListener("1"))
            .addOnPausedListener(new Activity(), new MyPausedListener("2"))
            .addOnPausedListener(new MyExecutor("ExecutorListener"), new MyPausedListener("3"));

            MyPausedListener remove = new MyPausedListener("remove");

            task.addOnPausedListener(remove);
            task.removeOnPausedListener(remove);

            task.pause();
            Debug.Log("task.isPaused status: " + task.isPaused());
            Thread.Sleep(2000);
            task.resume();

            Debug.Log("after task.resume status: " + task.isPaused());

            Debug.Log("DownloadTask addOnPausedListenerTest success");
        }
        public void addOnPausedListenerTest()
        {
            Debug.Log("UploadTask addOnPausedListenerTest");


            byte[] data     = new byte[100];
            string filename = "addOnPausedListenerTest.data";

            StorageReference storageReference = mAGCStorageManagement.getStorageReference(filename);
            UploadTask       task             = storageReference.putBytes(data, new FileMetadata());

            task.addOnPausedListener(new MyPausedListener("1"))
            .addOnPausedListener(new Activity(), new MyPausedListener("2"))
            .addOnPausedListener(new MyExecutor("ExecutorListener"), new MyPausedListener("3"));

            MyPausedListener remove = new MyPausedListener("remove");

            task.addOnPausedListener(remove);
            task.removeOnPausedListener(remove);

            task.pause();
            Debug.Log("task.isPaused status: " + task.isPaused());
            Thread.Sleep(2000);
            task.resume();

            Debug.Log("after task.resume status: " + task.isPaused());

            task.onPaused();
            Debug.Log("task.onPaused status: " + task.isPaused());
            Thread.Sleep(2000);
            task.resume();

            Debug.Log("UploadTask addOnPausedListenerTest success");
        }