page.put(Page.PAGE_COMMENTABLE, true);
page.put(Page.PAGE_TYPE, "page");
page.put(Page.PAGE_OPEN_TARGET, "_self");
page.put(Page.PAGE_EDITOR_TYPE, "");
final Transaction transaction = pageRepository.beginTransaction();
pageRepository.add(page);
transaction.commit();
final int maxOrder = pageRepository.getMaxOrder();
Assert.assertEquals(maxOrder, 1);