ServiceManager serviceManager = appManager.getServiceManager(SparkPageRankApp.RANKS_SERVICE_NAME);

serviceManager.start();</BUG>
transformServiceManager.waitForStatus(true);
<BUG>SparkManager sparkManager = appManager.getSparkManager("SparkPageRankProgram");

sparkManager.start();</BUG>
sparkManager.waitForFinish(60, TimeUnit.SECONDS);
serviceManager.waitForStatus(true);
String response = requestService(new URL(serviceManager.getServiceURL(15, TimeUnit.SECONDS),

ApplicationManager appManager = deployApplication(SparkPageRankApp.class);
StreamManager streamManager = getStreamManager("backlinkURLStream");
streamManager.send(URL_PAIR12);
streamManager.send(URL_PAIR13);
streamManager.send(URL_PAIR21);
streamManager.send(URL_PAIR31);
ServiceManager transformServiceManager =
appManager.getServiceManager(SparkPageRankApp.GOOGLE_TYPE_PR_SERVICE_NAME).start();
ServiceManager serviceManager = appManager.getServiceManager(SparkPageRankApp.RANKS_SERVICE_NAME).start();
transformServiceManager.waitForStatus(true);
SparkManager sparkManager = appManager.getSparkManager("SparkPageRankProgram").start();
sparkManager.waitForFinish(60, TimeUnit.SECONDS);
serviceManager.waitForStatus(true);
String response = requestService(new URL(serviceManager.getServiceURL(15, TimeUnit.SECONDS),
