Page { public static Page allPages() { return new Page(ALL_PAGES, ALL_PAGES); } private  Page(int start, int end); static Page allPages(); static Page singlePage(int page); static Page pageRange(int start, int end);  }
@Test public void testAllPages() throws Exception { Page page = Page.allPages(); assertTrue(page.start < 0); assertTrue(page.end < 0); assertEquals(page.start, page.end); }