expect( resultSet.getMetaData() ).andReturn(metadata);
expect( metadata.getColumnCount() ).andReturn(1);
expect( resultSet.getString(1)).andReturn(collation);
expect( resultSet.next() ).andReturn(false);
connection.attached(database);
replay(connection, sqlConnection, statement, resultSet, metadata);
database.setConnection(connection);
return database;
}