@Test
public void fromJsonWithoutDetailsCausesException() {

    final JsonObject shutDownNamespaceReasonWithoutDetails = knownJsonRepresentation.toBuilder()
            .remove(ShutdownReason.JsonFields.DETAILS)
            .build();
    assertThatExceptionOfType(JsonMissingFieldException.class).isThrownBy(
            () -> PurgeNamespaceReason.fromJson(shutDownNamespaceReasonWithoutDetails));
}