public static Optional<Boolean> parseBooleanExact(final String value) {
    if (booleanStringMatches(value, true)) {
      return Optional.of(true);
    }

    if (booleanStringMatches(value, false)) {
      return Optional.of(false);
    }

    return Optional.empty();
  }
@Test
  public void shouldParseExactFalseAsFalse() {
    assertThat(SqlBooleans.parseBooleanExact("fAlSe"), is(Optional.of(false)));
    assertThat(SqlBooleans.parseBooleanExact("FaLs"), is(Optional.of(false)));
    assertThat(SqlBooleans.parseBooleanExact("faL"), is(Optional.of(false)));
    assertThat(SqlBooleans.parseBooleanExact("FA"), is(Optional.of(false)));
    assertThat(SqlBooleans.parseBooleanExact("f"), is(Optional.of(false)));
  }