File getResourceAsFile(String resourceName) {
    URL resource = getResource(getClass(), resourceName);
    if (resource == null) {
      return null;
    }
    return new File(resource.getFile());
  }
Use this method to get a resource stored in the test's resource directory
geode-junit/src/main/java/org/apache/geode/codeAnalysis/AnalyzeDataSerializablesTestBase.java