Account account = DomainFixture.newTestAccount();
Mock accountServiceMock = mock(AccountService.class);
Mock catalogServiceMock = mock(CatalogService.class);
AccountBean accountBean = new AccountBean((AccountService)accountServiceMock.proxy(), (CatalogService)catalogServiceMock.proxy());
accountBean.setAccount(account);
accountBean.setMyList(new PaginatedArrayList(5));
accountBean.setPageDirection("next");
assertEquals(AbstractBean.SUCCESS,accountBean.switchMyListPage());
accountBean.setPageDirection("previous");
assertEquals(AbstractBean.SUCCESS,accountBean.switchMyListPage());
}