public void testListListOrdersByUsername() {
Mock accountServiceMock = mock(AccountService.class);
Mock orderServiceMock = mock(OrderService.class);
PaginatedArrayList orderList = new PaginatedArrayList(5);
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();