AcknowledgementRequestParseException extends DittoRuntimeException implements AcknowledgementException { public static AcknowledgementRequestParseException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return DittoRuntimeException.fromJson(jsonObject, dittoHeaders, new Builder()); } private  AcknowledgementRequestParseException(final DittoHeaders dittoHeaders,
            @Nullable final String message,
            @Nullable final String description,
            @Nullable final Throwable cause,
            @Nullable final URI href);  AcknowledgementRequestParseException(final CharSequence ackRequestString, @Nullable final Throwable cause,
            final DittoHeaders dittoHeaders); static AcknowledgementRequestParseException fromJson(final JsonObject jsonObject,
            final DittoHeaders dittoHeaders); static final String ERROR_CODE; }
@Test public void fromJsonReturnsExpected() { final DittoHeaders dittoHeaders = DittoHeaders.newBuilder().correlationId(testName.getMethodName()).build(); final AcknowledgementRequestParseException expected = new AcknowledgementRequestParseException("ab", null, dittoHeaders); final AcknowledgementRequestParseException actual = AcknowledgementRequestParseException.fromJson(KNOWN_JSON_REPRESENTATION, dittoHeaders); assertThat(actual).isEqualTo(expected); }