  @Test
  public void testGetLocalPath()
  {

    String localRelPath = "testbucket/123/4566/789";
    String remotePath = "s3://" + localRelPath;
    CacheConfig.setCacheDataDirPrefix(conf, cacheTestDirPrefix);
    CacheConfig.setCacheDataDirSuffix(conf, "/fcache/");
    CacheConfig.setMaxDisks(conf, 1);

    createCacheDirectoriesForTest(conf);

    String localPath = CacheUtil.getLocalPath(remotePath, conf, UNKONWN_GENERATION_NUMBER + 1);
    assertEquals(localPath, getExpectedPath(cacheTestDirPrefix, localRelPath, false), "Paths not equal!");
  }