final GlobalBufferPool bp1 = tm1.getChannelManager().getGlobalBufferPool();
final GlobalBufferPool bp2 = tm2.getChannelManager().getGlobalBufferPool();
try {
JobSubmissionResult result = jm.submitJob(jobGraph);
if (result.getReturnCode() != AbstractJobResult.ReturnCode.SUCCESS) {
System.out.println(result.getDescription());
}
assertEquals(AbstractJobResult.ReturnCode.SUCCESS, result.getReturnCode());
ExecutionGraph eg = jm.getCurrentJobs().get(jobGraph.getJobID());
// wait until everyone has settled in
long deadline = System.currentTimeMillis() + 2000;