@Test
public void toJsonReturnsExpected() {

    final DittoHeaders dittoHeaders = DittoHeaders.newBuilder().correlationId(KNOWN_CORRELATION_ID).build();
    final AcknowledgementRequestDuplicateCorrelationIdException underTest =
            AcknowledgementRequestDuplicateCorrelationIdException.newBuilder(KNOWN_CORRELATION_ID)
                    .dittoHeaders(dittoHeaders).build();
    final JsonObject actual = underTest.toJson();
    assertThat(actual).isEqualTo(KNOWN_JSON_REPRESENTATION);
}