static Map<String, Object> classFilterGenerator(ClassFilter classFilter) {
        if (classFilter == null || classFilter.isEmpty()) {
            return Collections.emptyMap();
        }
        Map<String, Object> classFilterMap = new LinkedHashMap<>();
        List<String> packagesAsList = new ArrayList<>();
        List<String> classesAsList = new ArrayList<>();
        List<String> prefixesAsList = new ArrayList<>();
        for (String p : classFilter.getPackages()) {
            packagesAsList.add(p);
        }
        for (String c : classFilter.getClasses()) {
            classesAsList.add(c);
        }
        for (String p : classFilter.getPrefixes()) {
            prefixesAsList.add(p);
        }
        classFilterMap.put("package", packagesAsList);
        classFilterMap.put("class", classesAsList);
        classFilterMap.put("prefix", prefixesAsList);
        return classFilterMap;
    }
@Test
    public void testClassFilterConfig() {
        ClassFilter filter = createClassFilter();
        Map<String, Object> filterAsMap = DynamicConfigYamlGenerator.classFilterGenerator(filter);
        assertClassFilterAsMap(filterAsMap);
    }