private void testAppDataSources(boolean appendQIDToTopic) throws Exception {
   StramLocalCluster lc = new StramLocalCluster(dag);
   lc.runAsync();
   StreamingContainerManager dnmgr = lc.dnmgr;
   List<AppDataSource> appDataSources = dnmgr.getAppDataSources();
   Assert.assertEquals("There should be exactly one data source", 1, appDataSources.size());
   AppDataSource ads = appDataSources.get(0);
   Assert.assertEquals("Data Source name verification", "ds.result", ads.getName());
   AppDataSource.QueryInfo query = ads.getQuery();
   Assert.assertEquals("Query operator name verification", "q", query.operatorName);
   Assert.assertEquals("Query topic verification", "xyz.query", query.topic);
   Assert.assertEquals("Query URL verification", "ws://123.123.123.123:9090/pubsub", query.url);
   AppDataSource.ResultInfo result = ads.getResult();
   Assert.assertEquals("Result operator name verification", "r", result.operatorName);
   Assert.assertEquals("Result topic verification", "xyz.result", result.topic);
   Assert.assertEquals("Result URL verification", "ws://123.123.123.124:9090/pubsub", result.url);
   Assert.assertEquals(
       "Result QID append verification", appendQIDToTopic, result.appendQIDToTopic);
   lc.shutdown();
 }