public static List<Map<String, String>> getTags(List<Rule> rules) {
        if (CollectionUtils.isEmpty(rules)) {
            return Collections.emptyList();
        }
        List<Map<String, String>> tags = new ArrayList<>();
        for (Rule rule : rules) {
            for (Route route : rule.getRoute()) {
                tags.add(route.getTags());
            }
        }
        return tags;
    }
@Test
    public void testGetTags() {
        List<Map<String, String>> tags = RuleUtils.getTags(list);
        Assert.assertEquals(2, tags.size());
        Assert.assertEquals("1.0.1", tags.get(0).get("version"));
        Assert.assertEquals("1.0.0", tags.get(1).get("version"));
    }