@Before
public void setup(){
long longId = 19191991L;
id=Long.toBinaryString(longId);
page=new PageImpl(id);
parentId = "12345";
testName="testName";
testOwner=new JpaUser(longId);
parentPage = new PageImpl(parentId);
subPages = new ArrayList<Page>();
Page subPage1 = new PageImpl();
subPage1.setId(SUB_PAGE_1_ID);
subPage1.setOwnerId(testOwner.getId());
Page subPage2 = new PageImpl();
subPage2.setId(SUB_PAGE_2_ID);
subPage2.setOwnerId(testOwner.getId());
List<PageUser> pageUsers1 = new ArrayList<PageUser>();
PageUser pageUser1 = new PageUserImpl();
pageUser1.setUserId(id);
pageUser1.setPage(subPage1);
pageUser1.setRenderSequence(2L);
pageUsers1.add(pageUser1);
subPage1.setMembers(pageUsers1);
List<PageUser> pageUsers2 = new ArrayList<PageUser>();
PageUser pageUser2 = new PageUserImpl();
pageUser2.setUserId("");
pageUser2.setPage(subPage2);
pageUser2.setRenderSequence(19L);
pageUsers2.add(pageUser2);
PageUser pageUser3 = new PageUserImpl();
pageUser3.setUserId(testOwner.getId());
pageUser3.setPage(subPage2);
pageUser3.setRenderSequence(1L);
pageUsers2.add(pageUser3);
subPage2.setMembers(pageUsers2);
subPages.add(subPage1);
subPages.add(subPage2);
pageLayout=new PageLayoutImpl();
renderSequence=1223L;