@SuppressWarnings("unchecked")
st
public void getMandatoryCachedPaths_edgeCases() throws LoginException {

    final ResourceResolver resolver = repo.getResourceResolver();
    when(resolver.getResource(anyString())).thenReturn(null);
    Set<String> paths = model.getMandatoryCachedPaths();
    assertEquals(0, paths.size());
    when(resolverFactory.getServiceResourceResolver()).thenThrow(LoginException.class);
    paths = model.getMandatoryCachedPaths();
    assertEquals(0, paths.size());
}