protected void replay() {
   super.replay();
   ctrlStatement.replay();
   ctrlPreparedStatement.replay();
   ctrlResultSet.replay();
   ctrlResultSetMetaData.replay();
 }
 protected void tearDown() throws Exception {
   super.tearDown();
   if (shouldVerify()) {
     ctrlStatement.verify();
     ctrlPreparedStatement.verify();
     ctrlResultSet.verify();
     ctrlResultSetMetaData.verify();
   }
 }
  protected void setUp() throws Exception {
    super.setUp();

    ctrlStatement = MockControl.createControl(Statement.class);
    mockStatement = (Statement) ctrlStatement.getMock();
    ctrlPreparedStatement = MockControl.createControl(PreparedStatement.class);
    mockPreparedStatement = (PreparedStatement) ctrlPreparedStatement.getMock();
    ctrlResultSet = MockControl.createControl(ResultSet.class);
    mockResultSet = (ResultSet) ctrlResultSet.getMock();
    ctrlResultSetMetaData = MockControl.createControl(ResultSetMetaData.class);
    mockResultSetMetaData = (ResultSetMetaData) ctrlResultSetMetaData.getMock();
  }