@Test
public void shouldDoNothingIfTraceIsNotEnabled() throws Exception {

    final Logger logger = mock(Logger.class);
    final Supplier<String>  stringSupplier = mock(Supplier.class);
    when(logger.isTraceEnabled()).thenReturn(false);
    defaultTraceLogger.trace(logger, stringSupplier);
    verify(logger, never()).trace(any(String.class));
    verifyZeroInteractions(stringSupplier);
}