private Object getField(Object instance, String fieldName) {
        try {
            Field field = TrafficRegulator.class.getDeclaredField(fieldName);
            field.setAccessible(true);
            return field.get(instance);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
Retrieves a static field value via reflection.
s3stream/src/test/java/com/automq/stream/s3/operator/TrafficRegulatorTest.java