AcknowledgementCorrelationIdMissingException extends DittoRuntimeException implements AcknowledgementException { public static AcknowledgementCorrelationIdMissingException.Builder newBuilder() { return new AcknowledgementCorrelationIdMissingException.Builder(); } private  AcknowledgementCorrelationIdMissingException(final DittoHeaders dittoHeaders,
            @Nullable final String message,
            @Nullable final String description,
            @Nullable final Throwable cause,
            @Nullable final URI href); static AcknowledgementCorrelationIdMissingException.Builder newBuilder(); static AcknowledgementCorrelationIdMissingException fromJson(final JsonObject jsonObject,
            final DittoHeaders dittoHeaders); static final String ERROR_CODE; }
@Test public void toJsonReturnsExpected() { final DittoHeaders dittoHeaders = DittoHeaders.newBuilder().correlationId(testName.getMethodName()).build(); final AcknowledgementCorrelationIdMissingException underTest = AcknowledgementCorrelationIdMissingException.newBuilder().dittoHeaders(dittoHeaders).build(); final JsonObject actual = underTest.toJson(); assertThat(actual).isEqualTo(KNOWN_JSON_REPRESENTATION); }