@Test
public void testWithThrown() {

  Throwable cause = new Throwable("Goodbye World");
  LogData data =
      FakeLogData.withPrintfStyle("Hello World").addMetadata(LogContext.Key.LOG_CAUSE, cause);
  SimpleLogEvent logEvent = newSimpleLogEvent(data);
  assertThat(logEvent.asLoggingEvent().getThrowableInformation().getThrowable())
      .isSameInstanceAs(cause);
}