public static void assertLocked() {
        Deque<String> activeLocks = activeLocksTL.get();
        if (activeLocks == null || activeLocks.isEmpty()) {
            throw new IllegalStateException("The task is not locked.");
        }
    }
@Test
    void assertShouldNotFailIfConfiguredForTests() {
        LockAssert.TestHelper.makeAllAssertsPass(true);
        LockAssert.assertLocked();

        LockAssert.TestHelper.makeAllAssertsPass(false);
        assertThatThrownBy(LockAssert::assertLocked).isInstanceOf(IllegalStateException.class);
    }