### Question:
PageLister { public List<BonitaPageItem> getPages() { return pages; }  List<BonitaPageItem> getPages(); BonitaPageItem getPage(final String token); List<BonitaPageItem> getPages(final List<String> pagesTokenToSkip);  }### Answer:
@Test public void getPages_return_all_available_bonita_pages() { final List<BonitaPageItem> pages = pageLister.getPages(); assertThat(pages, equalTo(PageLister.pages)); }
@Test public void getPages_return_all_pages_not_in_pagesToSkip_list() throws Exception { final BonitaPageItem pageToSkip1 = PageLister.pages.get(0); final BonitaPageItem pageToSkip2 = PageLister.pages.get(1); final List<BonitaPageItem> expectedPages = buildExpectedPagesList(pageToSkip1, pageToSkip2); final List<String> pagesTokenToSkip = asList(pageToSkip1.getToken(), pageToSkip2.getToken()); final List<BonitaPageItem> pages = pageLister.getPages(pagesTokenToSkip); assertThat(pages, equalTo(expectedPages)); }