testBranch1.setBranchId(TEST_ID_RTBRANCH1);
testSubBranch1 = new Branch("SubBranch1", testBranch1);
testSubBranch1.setBranchId(TEST_ID_SUBBRANCH1);
final Entry entry1 = new Entry("Entry Title 1", "Entry Desc 1", testBranch1);
final Entry entry2 = new Entry("Entry Title 2", "Entry Desc 2", testBranch1);
final Entry entry3 = new Entry("Entry Title 3", "Entry Desc 3", testSubBranch1);
when(branchDAO.readAllByParent(Constant.ROOT_ID)).thenReturn(Arrays.asList(new Branch[] { testBranch1 }));
when(branchDAO.readAllByParent(TEST_ID_RTBRANCH1)).thenReturn(Arrays.asList(new Branch[] { testSubBranch1 }));
when(entryDAO.readAllByBranch(TEST_ID_RTBRANCH1)).thenReturn(Arrays.asList(new Entry[] {
entry1,