private static void invokeMethod(Object object, String methodName) {
    try {
      Method method = object.getClass().getMethod(methodName);
      method.invoke(object);
    } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
      throw new RuntimeException(e);
    }
  }
Sets to the given value.

@param newValue the new value
@return a reference to this CloseableReference
geode-junit/src/main/java/org/apache/geode/test/junit/rules/CloseableReference.java