public void assertZabbixAgentDataRequest(int inx, String hostName, String... keyNames) {
        ZabbixRequest request = assertZabbixRequestBasic(inx, ZabbixProtocolType.AGENT_DATA);
        List<ZabbixRequest.AgentData> agentDataList = request.getAgentDataList();
        Assertions.assertNotNull(agentDataList);
        Assertions.assertEquals(keyNames.length, agentDataList.size());
        for (String keyName : keyNames) {
            boolean found = false;

            for (ZabbixRequest.AgentData agentData : agentDataList) {
                if (Objects.equals(keyName, agentData.getKey())) {
                    Assertions.assertEquals(hostName, agentData.getHost());
                    Assertions.assertTrue(NumberUtils.isParsable(agentData.getValue()) ?
                        Double.parseDouble(agentData.getValue()) > 0 : StringUtil.isNotBlank(agentData.getValue()));
                    Assertions.assertTrue(agentData.getId() > 0);
                    Assertions.assertTrue(agentData.getClock() > 0);
                    Assertions.assertTrue(agentData.getNs() > 0);
                    Assertions.assertTrue(agentData.getState() == 0);
                    found = true;
                }
            }

            if (!found) {
                // Throw exception when key not found
                throw new AssertionError("Could not found " + keyName + " in Agent data request");
            }
        }
    }
Verify Zabbix Agent data request data
oap-server/server-receiver-plugin/skywalking-zabbix-receiver-plugin/src/test/java/org/apache/skywalking/oap/server/receiver/zabbix/provider/ZabbixBaseTest.java