func setupTestApplication() gomarathon.Application {
	var app gomarathon.Application

	mapping := gomarathon.PortMapping{ServicePort: 1111, ContainerPort: 5555, Protocol: "UDP"}
	portMappings := []*gomarathon.PortMapping{&mapping}
	task := gomarathon.Task{Host: "141.10.10.141", Ports: []int{1000, 1001}}

	docker := gomarathon.Docker{PortMappings: portMappings}
	container := gomarathon.Container{Docker: &docker}

	app.Container = &container
	app.Tasks = []*gomarathon.Task{&task}

	return app
}
// Convert a single api Service into a gomarathon Application
func (c *MarathonConverter) convertToApp(service *api.Service) *gomarathon.Application {
	app := new(gomarathon.Application)

	// set count to 1 for services with no deployment count specifier
	var count int = 1
	if service.Deployment.Count > 0 {
		count = service.Deployment.Count
	}

	app.ID = strings.ToLower(service.Name)
	app.Cmd = service.Command
	app.CPUs = 0.5
	app.Env = buildEnvMap(service.Environment)
	app.Instances = count
	app.Mem = 1024
	app.Container = buildDockerContainer(service)

	return app
}