InvalidOptionException extends DittoRuntimeException implements ThingSearchException { public static InvalidOptionException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders) { return DittoRuntimeException.fromJson(jsonObject, dittoHeaders, new Builder()); } private  InvalidOptionException(final DittoHeaders dittoHeaders,
            @Nullable final String message,
            @Nullable final String description,
            @Nullable final Throwable cause,
            @Nullable final URI href); static Builder newBuilder(); static InvalidOptionException fromMessage(@Nullable final String message, final DittoHeaders dittoHeaders); static InvalidOptionException fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); static final String ERROR_CODE; }
@Test public void createInstanceFromValidJson() { final InvalidOptionException underTest = InvalidOptionException.fromJson(KNOWN_JSON, TestConstants .EMPTY_DITTO_HEADERS); assertThat(underTest).isEqualTo(TestConstants.INVALID_OPTION_EXCEPTION); }