@Test
public void fromJsonWithoutType() {

    final JsonObject jsonObject = purgeNamespaceReasonJson.toBuilder()
            .remove(ShutdownReason.JsonFields.TYPE)
            .build();
    assertThat(ShutdownReasonFactory.fromJson(jsonObject)).isEqualTo(ShutdownNoReason.INSTANCE);
}