private static URL getResource(final Class<?> classInSamePackage, final String resourceName) {
    return classInSamePackage.getResource(resourceName);
  }
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