it("test", function() {
   const mp = genMaybePromise({isFulfilled, isPromiseWrapper});
   const p = mp.toPromise();
   assert.notInstanceOf(p, MaybePromise);
   assert.instanceOf(p, Promise);
   return p.then((aValue) => {
     if (!isFulfilled) assert.fail(1, 0, `then-function called: ${aValue}`);
     return;
   }, (aError) => {
     if (isFulfilled) assert.fail(1, 0, `catch-fn called: ${aError}`);
   });
 });