public void testGetUpdateTopicsUpdatedForNoneExistingBranchAndUserGroup() {
int listSize = 5;
int pageSize = 2;
int lastPage = listSize / pageSize;
createAndSaveTopicList(listSize);
PageRequest pageRequest = new PageRequest(
String.valueOf(lastPage), pageSize);
DateTime lastLogin = new DateTime().minusDays(1);
PersistedObjectsFactory.createAndSaveViewTopicsBranchesEntity(22l, "noneExistingGroup", true);
Page<Topic> page = dao.getTopicsUpdatedSince(lastLogin, pageRequest, new AnonymousUser());