@SuppressWarnings("rawtypes")
st
public void get_cacheExists() {

    final ResourceMock _0 = addEntryCache(X, 0);
    _0.putProperty("_u", 1);
    _0.putProperty("_w_", 2);
    _0.putProperty("_abc_z", 3);
    _0.putProperty(JCR_PRIMARY_TYPE, "per:X");
    final ResourceMock child = _0.createChild(Y);
    child.putProperty(X, false);
    final List<ResourceMock> items = new ArrayList<>();
    items.add(_0);
    items.add(addEntryCache(X, true));
    items.add(addEntryCache(X, X));
    final List<SiteMapEntry> entries = model.get(page);
    assertNotNull(entries);
    final int size = items.size();
    assertEquals(size, entries.size());
    for (int i = 0; i < size; i++) {
        assertEquals(items.get(i).getProperty(X), entries.get(i).getProperty(X));
    }
    final SiteMapEntry entry = entries.get(0);
    assertNotNull(entry.getProperty("_u"));
    assertNotNull(entry.getProperty("_w_"));
    assertNull(entry.getProperty("w:"));
    assertNotNull(entry.getProperty("abc:z"));
    assertNull(entry.getProperty(JCR_PRIMARY_TYPE));
    final Object map = entry.getProperty(Y);
    assertNotNull(map);
    assertTrue(map instanceof Map);
    assertEquals(child.getProperty(X), ((Map)map).get(X));
}