executorService.awaitTermination(10, TimeUnit.SECONDS);
final PeerSyncClient syncClient = SyncServiceFactory
.getPeerSyncClient(conf);
assertTrue(syncClient instanceof ZooKeeperSyncClientImpl);
BSPJobID jobId = new BSPJobID("abc", 1);
TaskAttemptID taskId = new TaskAttemptID(new TaskID(jobId, 1), 1);
syncClient.init(conf, jobId, taskId);
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override