### Question:
CompositeSagaLog implements SagaLog { @Segment(name = "compositeSagaLog", category = "application", library = "kamon") @Override public void offer(SagaEvent sagaEvent) { persistent.offer(sagaEvent); embedded.offer(sagaEvent); } CompositeSagaLog(SagaLog embedded, PersistentLog persistent); @Segment(name = "compositeSagaLog", category = "application", library = "kamon") @Override void offer(SagaEvent sagaEvent);  }### Answer:
@Test public void addsLogsToEmbeddedOnlyAfterPersisted() { doThrow(RuntimeException.class).when(persistent).offer(sagaEvent); try { compositeSagaLog.offer(sagaEvent); expectFailing(RuntimeException.class); } catch (RuntimeException ignored) { } verify(embedded, never()).offer(sagaEvent); }