@Test
public void rebuildMandatoryContent() {

    final HashSet<String> mandatoryPaths = new HashSet<>(Arrays.asList(page.getPath()));
    when(siteMapConfiguration.getMandatoryCachedPaths()).thenReturn(mandatoryPaths);
    model.rebuildAll();
    assertOnCacheRefreshedMapContains(page);
}