InputStream metainfo_1 = new ByteArrayInputStream(metainfo_1_str.getBytes());
Metainfo metainfo = new MetainfoParser().parse(metainfo_1);
Assert.assertNotNull(metainfo.getApplication());
AgentProviderService aps = new AgentProviderService();
HeartBeat hb = new HeartBeat();
ComponentStatus status = new ComponentStatus();
status.setClusterName("test");
status.setComponentName("HBASE_MASTER");
status.setRoleCommand("GET_CONFIG");
Map<String, String> hbaseSite = new HashMap<>();
hbaseSite.put("hbase.master.info.port", "60012");
hbaseSite.put("c", "d");
Map<String, Map<String, String>> configs = new HashMap<>();
configs.put("hbase-site", hbaseSite);
configs.put("global", hbaseSite);
status.setConfigs(configs);
hb.setComponentStatus(new ArrayList<>(Arrays.asList(status)));
Map<String, Map<String, ClusterNode>> roleClusterNodeMap = new HashMap<>();
Map<String, ClusterNode> container = new HashMap<>();
ClusterNode cn1 = new ClusterNode(new MyContainerId(1));