mockStateful.reset(); mockStateless.reset(); mockSession.reset(); mockFactory.reset(); mockTransaction.reset(); mockDataSource.reset(); mockConnection.reset(); mockInvocation.reset();
reset(mockStateful,mockStateless,mockSession,mockFactory,mockTransaction, mockDataSource,mockConnection,mockInvocation);
    protected void tearDown() throws Exception    {    	session = null;    	mockStateful.reset();    	mockStateless.reset();    	mockSession.reset();    	mockFactory.reset();    	mockTransaction.reset();    	mockDataSource.reset();    	mockConnection.reset();    	mockInvocation.reset();        super.tearDown();        if (TransactionSynchronizationManager.isSynchronizationActive())        	TransactionSynchronizationManager.clearSynchronization();    }