public static void printIfTraceEnabled(Logger logger, String s, Object... args) {
        if (logger.isTraceEnabled()) {
            logger.trace(s, args);
        }
    }
@Test
    void testPrintIfTraceEnabled() {
        Logger logger = Mockito.mock(Logger.class);
        Mockito.when(logger.isTraceEnabled()).thenReturn(true);
        LoggerUtils.printIfTraceEnabled(logger, "test", "arg1", "arg2", "arg3");
        Mockito.verify(logger, Mockito.times(1)).trace("test", "arg1", "arg2", "arg3");
    }