let promise = Promise<AnyObject> {
      return Test.Error.code42 as AnyObject
    }.then { _ in
      XCTFail()
    }.catch { error in