### Question:
LooseValidations { private static ValidationMode validationMode() { return validationMode(System.getProperty("com.amazonaws.xray.validationMode", "")); } private  LooseValidations(); @CheckReturnValue static boolean checkNotNull(Object obj, String message);  }### Answer:
@Test void validationModeParsing() { assertThat(LooseValidations.validationMode("none")).isEqualTo(ValidationMode.NONE); assertThat(LooseValidations.validationMode("NONE")).isEqualTo(ValidationMode.NONE); assertThat(LooseValidations.validationMode("log")).isEqualTo(ValidationMode.LOG); 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); }