deploymentProps2.put("count", "2");
Properties deploymentProps3 = new Properties();
deploymentProps3.put("criteria", "groups.contains('hdfs')");
Stream stream1 = new Stream(new StreamDefinition("s1", "http | log"));
stream1.setStatus(new DeploymentUnitStatus(State.deployed));
ModuleMetadata entity1 = new ModuleMetadata(new ModuleMetadata.Id("1", "s1.source.http.0"),
entityProps1, deploymentProps1, State.deployed);
Stream stream2 = new Stream(new StreamDefinition("s2", "http | log"));
stream1.setStatus(new DeploymentUnitStatus(State.failed));
ModuleMetadata entity2 = new ModuleMetadata(new ModuleMetadata.Id("2", "s2.sink.log.1"),
entityProps2, deploymentProps2, DeploymentUnitStatus.State.deployed);
Job job1 = new Job(new JobDefinition("j3", "job"));
job1.setStatus(new DeploymentUnitStatus(State.deployed));
ModuleMetadata entity3 = new ModuleMetadata(new ModuleMetadata.Id("3", "j3.job.myjob.0"),
entityProps3, deploymentProps3, State.deployed);
List<ModuleMetadata> entities1 = new ArrayList<ModuleMetadata>();
List<ModuleMetadata> entities2 = new ArrayList<ModuleMetadata>();
List<ModuleMetadata> entities3 = new ArrayList<ModuleMetadata>();
List<ModuleMetadata> all = new ArrayList<ModuleMetadata>();