     .then (result) =>
       console.log 5
       @masterProductId = result.id
+      @masterProductVersion = result.version
       data =
         actions: [
           { action: 'publish' }

      expect(price.customerGroup.typeId).toBe 'customer-group'
      expect(price.customerGroup.id).toBeDefined()

      price = result.masterData.current.variants[1].prices[0]
      expect(price.value.currencyCode).toBe 'EUR'
      expect(price.value.centAmount).toBe 99
      expect(price.channel.typeId).toBe 'channel'
      expect(price.channel.id).toBeDefined()
      expect(price.customerGroup).toBeUndefined()
      done()

    .fail (error) ->


      @client.products.byId(result.id).save(data)
    .then (result) =>
      console.log 7.5
      data =
        actions: [
          { action: 'setAttribute', variantId: 1, name: 'mastersku', value: 'alksvbkl;jsdvn' }
        ]
        version: @masterProductVersion
      @client.products.byId(@masterProductId).save(data)
    .then (result) =>
      console.log 8
      @priceSync.run()
    .then (msg) =>
