@Test
public void buildForCause() {

    final DittoHeaderInvalidException cause =
            DittoHeaderInvalidException.newInvalidTypeBuilder("theHeaderName", "theValue", "theExpectedType")
                    .build();
    final SignalEnrichmentFailedException underTest = SignalEnrichmentFailedException.dueTo(cause);
    assertThat(underTest.getStatusCode()).isEqualTo(cause.getStatusCode());
    assertThat(underTest.getDescription().orElseThrow(() -> new AssertionError("Expect description")))
            .contains(cause.getErrorCode())
            .contains(cause.getMessage())
            .contains(cause.getDescription().orElse("-----NOT POSSIBLE-----"));
}