public void testShouldSwitchOrderListPagesBackAndForth() {
Mock accountServiceMock = mock(AccountService.class);
Mock orderServiceMock = mock(OrderService.class);
PaginatedArrayList orderList = new PaginatedArrayList(2);
orderList.add(new Order());
orderList.add(new Order());
orderList.add(new Order());
orderServiceMock.expects(once())
.method("getOrdersByUsername")
.with(NOT_NULL)
.will(returnValue(orderList));
Map sessionMap = ActionContext.getActionContext().getSessionMap();