userPropertyCache.register(propertyKeys);
assertTrue(userPropertyCache.isRegistered("property"));
// add a property value and ensure it is in the cache
userPropertyCache.add("property", "value", "user");
assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));
// update the property value and ensure it is updated in the cache
userPropertyCache.add("property", "newvalue", "user");
assertEquals("user", userPropertyCache.readUserByProperty("property", "newvalue", false, false));
assertNull(userPropertyCache.readUserByProperty("property", "value", false, false));