@Test
public void testBootstrapping() throws Exception {

  Map<String, String> initialCachedResources = startStoreWithResources();
  int count = initialCachedResources.size();
  ApplicationId id = createAppId(1, 1L);
  // the entries from the cached entries should now exist
  for (int i = 0; i < count; i++) {
    String key = String.valueOf(i);
    String fileName = key + ".jar";
    String result =
        store.addResourceReference(key, new SharedCacheResourceReference(id,
            "user"));
    // the value should not be null (i.e. it has the key) and the filename should match
    assertEquals(fileName, result);
    // the initial input should be emptied
    assertTrue(initialCachedResources.isEmpty());
  }
}