startDefaultMaster();
startDefaultAgent(testHost());
awaitHostStatus(testHost(), UP, LONG_WAIT_SECONDS, SECONDS);
// Create job
final JobId jobId = createJob(testJobName, testJobVersion, BUSYBOX, IDLE_COMMAND,
ImmutableMap.of("FOO", "4711",
"BAR", "deadbeef"));
// deploy
deployJob(jobId, testHost());
final String[] commands = new String[]{"watch", "-z", masterEndpoint(),
"--no-log-setup", jobId.toString()};
final AtomicBoolean success = new AtomicBoolean(false);
final List<String> outputLines = Lists.newArrayList();
final long deadline = System.currentTimeMillis() + SECONDS.toMillis(LONG_WAIT_SECONDS);