builder.append(output);
latch.countDown();
}
};
PipelineService service = PipelineServiceFactory.newPipelineService();
String pipelineId = service.startNewPipeline(new PrintGCDJob());
assertTrue(latch.await(3, TimeUnit.MINUTES));
assertEquals(expectedMessage, builder.toString());
// Wait for job task thread to complete
Thread.sleep(2000);
JobInfo jobInfo = service.getJobInfo(pipelineId);