@Test
public void testUseCacheHit() throws Exception {

  Path file = new Path("viewfs://test/path");
  URL useUrl = URL.fromPath(new Path("viewfs://test/path"));
  UseSharedCacheResourceResponse response =
      new UseSharedCacheResourceResponsePBImpl();
  response.setPath(file.toString());
  when(cProtocol.use(isA(UseSharedCacheResourceRequest.class))).thenReturn(
      response);
  URL newURL = client.use(mock(ApplicationId.class), "key");
  assertEquals("The paths are not equal!", useUrl, newURL);
}