public static void loggedMute(CheckedRunnable runnable) {
    try {
      runnable.run();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
@Test
  void loggedMuteShouldLogExceptionTraceBeforeSwallowingIt() {
    var stream = new ByteArrayOutputStream();
    System.setErr(new PrintStream(stream));

    Mute.loggedMute(this::methodThrowingException);

    assertTrue(stream.toString().contains(MESSAGE));
  }