public Optional<String> getErrorMessage() {
    return error != null ? Optional.ofNullable(getRootCause(error).getMessage()) : Optional.empty();
  }
@Test
  public void getErrorMessage_returns_empty_if_no_error() {
    WebhookDelivery delivery = newBuilderTemplate().build();

    assertThat(delivery.getErrorMessage()).isEmpty();
  }