public static void error(final Logger logger, final String format, final Supplier<Object> supplier) {
        if (logger.isErrorEnabled()) {
            logger.error(format, supplier.get());
        }
    }
@Test
    public void testNeverError() {
        when(logger.isErrorEnabled()).thenReturn(false);
        LogUtils.error(logger, supplier);
        verify(supplier, never()).get();
    }