@Test
void validationModeParsing() {

    assertThat(LooseValidations.validationMode("none")).isEqualTo(ValidationMode.NONE);
    assertThat(LooseValidations.validationMode("NONE")).isEqualTo(ValidationMode.NONE);
    assertThat(LooseValidations.validationMode("log")).isEqualTo(ValidationMode.LOG);
    // Check mixed case
    assertThat(LooseValidations.validationMode("Log")).isEqualTo(ValidationMode.LOG);
    assertThat(LooseValidations.validationMode("throw")).isEqualTo(ValidationMode.THROW);
    assertThat(LooseValidations.validationMode("")).isEqualTo(ValidationMode.NONE);
    assertThat(LooseValidations.validationMode("unknown")).isEqualTo(ValidationMode.NONE);
}