@Test
public void getCache_doesNotExistYet() {

    disableResolution(parentCache);
    final Resource cache = model.getCache(resourceResolver, parent);
    assertNotEquals(parentCache, cache);
    verifyCommits(1);
    assertTrue(buildCacheCalled.containsKey(parent));
    assertEquals(cache, buildCacheCalled.get(parent));
}