@Test
public void testNotify_noEntry() throws Exception {

  long accepted =
      SharedCacheUploaderMetrics.getInstance().getAcceptedUploads();
  SCMUploaderNotifyRequest request =
      recordFactory.newRecordInstance(SCMUploaderNotifyRequest.class);
  request.setResourceKey("key1");
  request.setFilename("foo.jar");
  assertTrue(proxy.notify(request).getAccepted());
  Collection<SharedCacheResourceReference> set =
      store.getResourceReferences("key1");
  assertNotNull(set);
  assertEquals(0, set.size());
  assertEquals(
      "NM upload metrics aren't updated.", 1,
      SharedCacheUploaderMetrics.getInstance().getAcceptedUploads() -
          accepted);
}