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