@Test
  public void getNullableBooleanWithColumnNameWorks() throws SQLException {
    ResultSet mockResultSet = mock(ResultSet.class);
    when(mockResultSet.getBoolean("foo")).thenReturn(true);

    assertEquals(true, ResultSets.getNullableBoolean(mockResultSet, "foo").booleanValue());
    assertEquals(true, ResultSets.enhance(mockResultSet).getNullableBoolean("foo").booleanValue());

    when(mockResultSet.getBoolean("foo")).thenReturn(false);
    when(mockResultSet.wasNull()).thenReturn(true);
    assertNull(ResultSets.getNullableBoolean(mockResultSet, "foo"));
    assertNull(ResultSets.enhance(mockResultSet).getNullableBoolean("foo"));
  }