public SampleResult mergeSampleResult(SampleResult sampleCollectResult, List<SampleResult> sampleResults) {
        SampleResult mergeResult = new SampleResult();
        Map<String, String> listenersGroupkeyStatus;
        if (sampleCollectResult.getLisentersGroupkeyStatus() == null || sampleCollectResult.getLisentersGroupkeyStatus()
                .isEmpty()) {
            listenersGroupkeyStatus = new HashMap<>(10);
        } else {
            listenersGroupkeyStatus = sampleCollectResult.getLisentersGroupkeyStatus();
        }
        
        for (SampleResult sampleResult : sampleResults) {
            Map<String, String> listenersGroupkeyStatusTmp = sampleResult.getLisentersGroupkeyStatus();
            listenersGroupkeyStatus.putAll(listenersGroupkeyStatusTmp);
        }
        mergeResult.setLisentersGroupkeyStatus(listenersGroupkeyStatus);
        return mergeResult;
    }
@Test
    void testMergeSampleResult() throws Exception {
        SampleResult sampleResult1 = new SampleResult();
        Map<String, String> listener1 = new HashMap<>();
        listener1.put("config1", "md51123");
        listener1.put("config11", "md5123123");
        sampleResult1.setLisentersGroupkeyStatus(listener1);
        SampleResult sampleResult2 = new SampleResult();
        Map<String, String> listener2 = new HashMap<>();
        listener2.put("config22", "md51123");
        listener2.put("config2", "md5123123");
        sampleResult2.setLisentersGroupkeyStatus(listener2);
        List<SampleResult> sampleResults = new ArrayList<>();
        sampleResults.add(sampleResult2);
        SampleResult sampleResult3 = new SampleResult();
        Map<String, String> listener3 = new HashMap<>();
        listener3.put("config33", "md51123");
        listener3.put("config3", "md5123123");
        sampleResult3.setLisentersGroupkeyStatus(listener3);
        sampleResults.add(sampleResult3);
        //sampleResult ips is null
        SampleResult sampleResultMerge1 = configSubService.mergeSampleResult(sampleResult1, sampleResults);
        assertEquals(6, sampleResultMerge1.getLisentersGroupkeyStatus().size());
        
        SampleResult sampleResultMerge2 = configSubService.mergeSampleResult(new SampleResult(), sampleResults);
        assertEquals(4, sampleResultMerge2.getLisentersGroupkeyStatus().size());
    }