@Test
public void testClearStatementCaches(){

	this.testClass.statementCachingEnabled = true;
	this.mockPreparedStatementCache.clear();
	expectLastCall().once();
	this.mockCallableStatementCache.clear();
	expectLastCall().once();
	replay(this.mockPreparedStatementCache, this.mockCallableStatementCache);
	this.testClass.clearStatementCaches(true);
	verify(this.mockPreparedStatementCache, this.mockCallableStatementCache);
	reset(this.mockPreparedStatementCache, this.mockCallableStatementCache);
	this.mockPool.closeConnectionWatch = true;
	this.mockPreparedStatementCache.checkForProperClosure();
	expectLastCall().once();
	this.mockCallableStatementCache.checkForProperClosure();
	expectLastCall().once();
	replay(this.mockPreparedStatementCache, this.mockCallableStatementCache);
	this.testClass.clearStatementCaches(false);
	verify(this.mockPreparedStatementCache, this.mockCallableStatementCache);
}