@Test
public void fromJsonWithIllegalDate() {

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