List<String> loadExcludedClasses(File excludedClassesFile) throws IOException {
    if (excludedClassesFile == null) {
      return emptyList();
    }

    List<String> excludedClasses = new LinkedList<>();
    FileReader fr = new FileReader(excludedClassesFile);
    BufferedReader br = new BufferedReader(fr);
    try {
      String line;
      while ((line = br.readLine()) != null) {
        line = line.trim();
        if (!line.isEmpty() && !line.startsWith("#")) {
          excludedClasses.add(line);
        }
      }
    } finally {
      fr.close();
    }
    return excludedClasses;
  }
Prepare your serialization service for use
geode-junit/src/main/java/org/apache/geode/codeAnalysis/AnalyzeDataSerializablesTestBase.java