    @Test
    public void testGetAllPeopleInTheCache_cacheIsNotEmpty() throws Exception {

        //given
        Collection<Person> nonEmptyCacheList = new ArrayList<>();
        nonEmptyCacheList.add(new Person(PERSON_NAME, PERSON_GENDER, PERSON_BIRTH_YEAR, PERSON_URL));
        PaginatedCollection<Person> expectedPeopleList = PaginatedCollectionUtils.createPaginatedCollection(
                nonEmptyCacheList);
        when(peopleRepository.getAll(ReadPolicy.CACHE_ONLY)).thenReturn(nonEmptyCacheList);

        //when
        PaginatedCollection<Person> actualPeopleList = getPeople.getAllPeopleInCache();

        //then
        assertThatPaginatedListAreEqual(actualPeopleList, expectedPeopleList);
    }