new PropertyState(PROPERTY_ID, ItemState.STATUS_NEW, true);
property.setType(PropertyType.REFERENCE);
property.setValues(
new InternalValue[] { InternalValue.create(CHILD_ID) });
NodeReferences references = new NodeReferences(CHILD_ID);
references.addReference(PROPERTY_ID);
ChangeLog create = new ChangeLog();
create.added(node);
create.added(child);
create.added(property);
create.modified(references);
manager.store(create);
assertTrue(manager.exists(NODE_ID));
assertTrue(manager.exists(CHILD_ID));
assertTrue(manager.exists(PROPERTY_ID));
assertTrue(manager.existsReferencesTo(CHILD_ID));
assertEquals(node, manager.load(NODE_ID));
assertEquals(child, manager.load(CHILD_ID));
assertEquals(property, manager.load(PROPERTY_ID));
assertEquals(references, manager.loadReferencesTo(CHILD_ID));
references.removeReference(PROPERTY_ID);
node.setStatus(ItemState.STATUS_EXISTING);
ChangeLog update = new ChangeLog();
update.modified(references);
node.removePropertyName(TEST);
update.deleted(property);