expectedTopic.setTitle(TOPIC_CONTENT);
saveAndFlushIndexes(Arrays.asList(expectedTopic));
configureMocks(TOPIC_CONTENT, TOPIC_CONTENT);
PageRequest pageRequest = new PageRequest("1000", 50);
Page<Topic> searchResultPage =
topicSearchDao.searchByTitleAndContent(TOPIC_CONTENT, pageRequest,
Arrays.asList(expectedTopic.getBranch().getId()));
Assert.assertEquals(searchResultPage.getNumber(), 1);