public static boolean requireGlobalLock() {
        return CONTEXT_HOLDER.get(KEY_GLOBAL_LOCK_FLAG) != null;
    }
@Test
    public void testRequireGlobalLock() {
        RootContext.bindGlobalLockFlag();
        assertThat(RootContext.requireGlobalLock()).isEqualTo(true);
        RootContext.unbindGlobalLockFlag();
        assertThat(RootContext.requireGlobalLock()).isEqualTo(false);
    }