public static URL getResource(final Class<?> classInSamePackage, final String resourceName) {
    URL resource = classInSamePackage.getResource(resourceName);
    assertThat(resource)
        .as("Resource '" + resourceName + "' associated with Class '" + classInSamePackage.getName()
            + "'")
        .isNotNull();
    return resource;
  }
Finds {@code resourceName} using the {@code ClassLoader} of {@code classInSamePackage}.

@param classInSamePackage a class sharing the {@code ClassLoader} from which to retrieve the
       resource
@param resourceName the resource to find
@return the URL of the resource

@throws AssertionError if the resource cannot be located
geode-junit/src/main/java/org/apache/geode/test/util/ResourceUtils.java