text: /**
   * Created by marija on 22.02.18.
   */
  
  
  
  var p1 = Promise.resolve(18);
  var p2 = Promise.reject(17);
  
  
  
  
  
  
  
  
  var callbackArguments = [];
  var argument1 = r_0;
  var argument2 = function (results) {
   callbackArguments.push(arguments) 
  
      try {
          assertOccurrences(results, [
              {
                  start: 4,
                  end: 9
              },
              {
                  start: 42,
                  end: 47
              }
          ]);
      } finally {
          tearDown();
      }
  };
  var argument3 = false;
  var argument4 = null;
  var argument5 = function () {
   callbackArguments.push(arguments) 
  
      throw new Error('At least one Bespin failed to launch!');
  };
  var argument6 = p2;
  var argument7 = function (err) {
   callbackArguments.push(arguments) 
  
      /permission/i.test(err.message).should.be.true;
  };
  var argument8 = function (err) {
   callbackArguments.push(arguments) 
  
      expect(err).to.exist;
      done();
  };
  var argument9 = [1.7976931348623157e+308,"l","UXC","L","i","i<","E]=QHF6","H"];
  var base_0 = p2
  var r_0= undefined
  try {
  r_0 = base_0.then(argument1,argument2,argument3)
  }
  catch(e) {
  r_0= e.message
  }
  var base_1 = p2
  var r_1= undefined
  try {
  r_1 = base_1.then(argument4,argument5,argument6)
  }
  catch(e) {
  r_1= e.message
  }
  var base_2 = p2
  var r_2= undefined
  try {
  r_2 = base_2.catch(argument7)
  }
  catch(e) {
  r_2= e.message
  }
  var base_3 = p1
  var r_3= undefined
  try {
  r_3 = base_3.catch(argument8,argument9)
  }
  catch(e) {
  r_3= e.message
  }
  function serialize(array){
  return array.map(function(a){
  if (a === null || a == undefined) return a;
  var name = a.constructor.name;
  if (name==='Object' || name=='Boolean'|| name=='Array'||name=='Number'||name=='String')
  return JSON.stringify(a);
  return name;
   });
  }
  setTimeout(function(){
  require("fs").writeFileSync("./experiments/promises/promiseMined/test562.json",JSON.stringify({"baseObjects":serialize([base_0,base_1,base_2,base_3]),"returnObjects":serialize([r_0,r_1,r_2,r_3]),"callbackArgs":callbackArguments}))
  },300)