@Test
public void getFirstExistingAncestorOnPath_noResourceUnderPath() {

    when(resourceResolver.getResource(path)).thenReturn(null);
    final Resource resource = ResourceUtils.getFirstExistingAncestorOnPath(resourceResolver, path);
    assertEquals(jcrContent, resource);
}