@Test
public void fromJsonWithIllegalDate() {

    final JsonObject json = KNOWN_JSON.toBuilder()
            .set(RetrieveConnectionLogsResponse.JsonFields.ENABLED_SINCE, "not-a-date")
            .build();
    assertThatExceptionOfType(JsonParseException.class)
            .isThrownBy(
                    () -> RetrieveConnectionLogsResponse.fromJson(json,
                            EMPTY_HEADERS))
            .withMessage("The JSON object's field <%s> is not in ISO-8601 format as expected!",
                    RetrieveConnectionLogsResponse.JsonFields.ENABLED_SINCE.getPointer());
}