session = createMock(ISession.class);
tokenizer = createMock(IQueryTokenizer.class);
md = createMock(ISQLDatabaseMetaData.class);
con = createMock(Connection.class);
driver = createMock(ISQLDriver.class);
sqlCon = new SQLConnection(con, null, driver);
session.setQueryTokenizer(tokenizer);
expect(session.getMetaData()).andReturn(md);
expect(session.getSQLConnection()).andReturn(sqlCon);
expect(session.getQueryTokenizer()).andReturn(tokenizer);
replay(session);