public static void latchAwait(CountDownLatch latch) {
        try {
            latch.await();
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
@Test
    void testLatchAwaitForTimeout() {
        final CountDownLatch countDownLatch = new CountDownLatch(1);
        long currentTime = System.currentTimeMillis();
        ThreadUtils.latchAwait(countDownLatch, 50, TimeUnit.MILLISECONDS);
        assertTrue(System.currentTimeMillis() - currentTime >= 50);
        
    }