*
* @throws Exception exception
*/
@Test(dependsOnMethods = {"add", "getMaxOrder"})
public void getByOrder() throws Exception {
final PageRepository pageRepository = getPageRepository();
final JSONObject page1 = pageRepository.getByOrder(0);
Assert.assertNotNull(page1);
Assert.assertEquals(page1.getString(Page.PAGE_TITLE), "page1 title");
Assert.assertNull(pageRepository.getByOrder(Integer.MIN_VALUE));
}