@Test
public void testColumnExists() throws Exception {

    when(connectionMock.prepareStatement(contains("SELECT"))).thenReturn(preparedStatementMock);
    Connection conn = connectionMock;
    String tableName = "tableName";
    String columnName = "columnName";
    dao.columnExists(conn, tableName, columnName);
    verify(connectionMock, times(1)).prepareStatement(anyString());
    verify(preparedStatementMock, times(1)).executeQuery();
    verify(preparedStatementMock, times(1)).close();
    verify(loggerMock, times(0)).debug(anyString(), any(Throwable.class));
}