.setCommand(IDLE_COMMAND)
.setPorts(ImmutableMap.of("foo", PortMapping.of(4711),
"bar", PortMapping.of(4712, ports.localPort("bar"))))
.build();
final JobId jobId = job.getId();
final CreateJobResponse created = client.createJob(job).get();
assertEquals(CreateJobResponse.Status.OK, created.getStatus());
// Wait for agent to come up
awaitHostRegistered(client, host, LONG_WAIT_SECONDS, SECONDS);
awaitHostStatus(client, host, UP, LONG_WAIT_SECONDS, SECONDS);