public void setUp() throws Exception {
reset(this.mockClass, this.mockCallableStatementCache, this.mockConnection);
expect(this.mockConnection.getPool()).andReturn(this.mockPool).anyTimes();
BoneCPConfig config = new BoneCPConfig();
expect(this.mockPool.getConfig()).andReturn(config).anyTimes();
config.setConnectionHook(new AbstractConnectionHook() {
// do nothing
});
expect(this.mockConnection.isLogStatementsEnabled()).andReturn(true).anyTimes();
replay(this.mockConnection, this.mockPool);
this.testClass = new PreparedStatementHandle(this.mockClass, "", this.mockConnection, "TestSQL", this.mockCallableStatementCache);