It("sets up the container network", func() {
		_, err := controller.Add(payload)
		Expect(err).NotTo(HaveOccurred())

		Expect(creator.SetupCallCount()).To(Equal(1))
		Expect(creator.SetupArgsForCall(0)).To(Equal(container.CreatorConfig{
			NetworkID:       "network-id-1",
			App:             "app-id-1",
			ContainerNsPath: "/some/namespace/path",
			ContainerID:     "container-id",
			InterfaceName:   "interface-name",
			IPAMResult:      ipamResult,
			VNI:             99,
		}))

		Expect(datastore.CreateCallCount()).To(Equal(1))
		Expect(datastore.CreateArgsForCall(0)).To(Equal(models.Container{
			ID:        "container-id",
			NetworkID: "network-id-1",
			App:       "app-id-1",
			MAC:       "00:00:00:00:00",
			HostIP:    "10.12.100.4",
			IP:        "192.168.160.3",
		}))
	})

	It("gets the networkID from the network mapper", func() {
		_, err := controller.Add(payload)
		Expect(err).NotTo(HaveOccurred())

		Expect(networkMapper.GetNetworkIDCallCount()).To(Equal(1))