ETag: "etag-updated-at",
		}
	})

	Describe("Build", func() {
		var desiredLRP *models.DesiredLRP

		JustBeforeEach(func() {
			desiredLRP, err = builder.Build(&desiredAppReq)
		})

		Describe("CPU weight calculation", func() {
			Context("when the memory limit is below the minimum value", func() {
				BeforeEach(func() {
					desiredAppReq.MemoryMB = recipebuilder.MinCpuProxy - 9999
				})

				It("returns 1", func() {
					Expect(desiredLRP.CpuWeight).To(BeEquivalentTo(1))
				})
			})

			Context("when the memory limit is above the maximum value", func() {
				BeforeEach(func() {
					desiredAppReq.MemoryMB = recipebuilder.MaxCpuProxy + 9999
				})

				It("returns 100", func() {
					Expect(desiredLRP.CpuWeight).To(BeEquivalentTo(100))
				})