public static Class<?> getCallerClass(final int depth) {
    try {
      return Class.forName(getCallerClassName(depth + 1));
    } catch (ClassNotFoundException e) {
      throw new RuntimeException(e);
    }
  }
Returns the class identified by {@code depth} element of the call stack.

@param depth the depth of the call stack to check
@return the class
@throws RuntimeException wrapping a ClassNotFoundException if the class cannot be located
geode-junit/src/main/java/org/apache/geode/test/util/ResourceUtils.java