@Test
public void testCachingDisabled() throws Exception {

  Configuration conf = new Configuration(false);
  // Stop FileSystem.get() from returning cached instances of CachedHttpFileSystem, it messes with our tests.
  // we need to create a new object each time.
  conf.setBoolean("fs.chttp.impl.disable.cache", true);
  conf.set("fs.chttp.impl", azkaban.cachedhttpfilesystem.CachedHttpFileSystem.class.getName());
  conf.set(CachedHttpFileSystem.CACHE_ENABLED_FLAG, "false");
  CachedHttpFileSystem tmpCachedHttpFileSystem = spy((CachedHttpFileSystem) FileSystem.get(chttpRootURI, conf));
  configureMockResponseFromHttpOrigin(tmpCachedHttpFileSystem, this.originAbsoluteJarURI);
  // Make sure we get the content back from the origin as expected
  assertInputStreamIsJarContent(tmpCachedHttpFileSystem.open(new Path(this.chttpAbsoluteJarURI)));
}