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 shouldParseExactNoAsFalse() {
    assertThat(SqlBooleans.parseBooleanExact("nO"), is(Optional.of(false)));
    assertThat(SqlBooleans.parseBooleanExact("N"), is(Optional.of(false)));
  }