@Test
public void testBuildInitialSearchTasks() {

    Mockito.when(initialSearchTaskBuilder.getSearchTasks(searchPolicy, locationTokens)).thenReturn(expectedTasks);
    List<SearchTask> result = searchTaskFactory.buildInitialSearchTasks(searchPolicy, locationTokens);
    assertThat(result).isSameAs(expectedTasks);
}