hibernateSessionFactory.openSessionReturn = hibernateSession;
connection = new MockConnection();
hibernateSession.connectionReturn = connection;
mockPreparedStatement = new MockPreparedStatement();
connection.prepareStatementReturn = mockPreparedStatement;
mockResultSet = new MockResultSet();
mockPreparedStatement.executeQueryReturn = mockResultSet;
mapping = new ActionMapping();
request = new XHttpServletRequestSimulator();
request.setLocale(Locale.getDefault());
response = new XHttpServletResponseSimulator();