@Test
public void testWrapConnectionInCloseable() throws Exception {

    ResultSet resultSet = mock(ResultSet.class);
    Closeable closeable = DBUtils.wrapAsCloseable(resultSet);
    closeable.close();
    verify(resultSet, times(1)).close();
}