@Test
@ExpectLog(level = Level.TRACE, messageRegexp = "msg1")
public void testTrace() {

  ExecContextLogger log = new ExecContextLogger(LoggerFactory.getLogger("test"));
  log.trace("msg1");
  List<Slf4jLogRecord> logs = new ArrayList<>(2);
  ExecutionContexts.current().streamLogs(logs::add);
  Assert.assertEquals("msg1", logs.get(0).getMessageFormat());
}