@Test
public void testTraceFilter() {

    LoggerContext context = (LoggerContext) StaticLoggerBinder.getSingleton().getLoggerFactory();
    Logger logger = context.getLogger("testTraceFilter");
    logger.setLevel(Level.TRACE);
    assertEquals("traceFilter should not interfere with stream", Arrays.asList("one", "two", "three"),
            Stream.of("one", "two", "three")
                    .filter(Util.traceFilter(logger, "counting {}"))
                    .collect(Collectors.toList()));
}