@Test
public void should_refreshIndexing_repository() throws Exception {

    List<Page> pages = new ArrayList<>();
    Page page = aPage().withUUID("baz-uuid").withId("page1").build();
    Page page2 = aPage().withUUID("foo-uuid").withId("page2").withName("page2").build();
    pages.add(page);
    pages.add(page2);
    repository.refreshIndexing(pages);
    verify(persister, times(1)).refreshIndexing(pagesPath.resolve(".metadata"), pages);
}