TooManyRequestsException extends DittoRuntimeException { public static TooManyRequestsException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return DittoRuntimeException.fromJson(jsonObject, dittoHeaders, new Builder()); } private  TooManyRequestsException(final DittoHeaders dittoHeaders,
            @Nullable final String message,
            @Nullable final String description,
            @Nullable final Throwable cause,
            @Nullable final URI href); static Builder newBuilder(); static TooManyRequestsException fromMessage(@Nullable final String message,
            final DittoHeaders dittoHeaders); static TooManyRequestsException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); static final String ERROR_CODE; }
@Test public void createInstanceFromValidJson() { final TooManyRequestsException deserialized = TooManyRequestsException.fromJson(KNOWN_JSON, DittoHeaders.empty()); assertThat(deserialized).isEqualTo(UNDER_TEST); }