@Test
public void testAddResourceRefNonExistentResource() throws Exception {

  startEmptyStore();
  String key = "key1";
  ApplicationId id = createAppId(1, 1L);
  // try adding an app id without adding the key first
  assertNull(store.addResourceReference(key,
      new SharedCacheResourceReference(id, "user")));
}