MetaV2Proxy implements IMetaProxy { @Override public String getMetaPrefix(DateUtil.DateRange dateRange) { return getMatch(dateRange, AbstractBackupPath.BackupFileType.META_V2); } @Inject  MetaV2Proxy(
            IConfiguration configuration,
            IFileSystemContext backupFileSystemCtx,
            Provider<AbstractBackupPath> abstractBackupPathProvider); @Override Path getLocalMetaFileDirectory(); @Override String getMetaPrefix(DateUtil.DateRange dateRange); @Override Iterator<AbstractBackupPath> getIncrementals(DateUtil.DateRange dateRange); @Override List<AbstractBackupPath> findMetaFiles(DateUtil.DateRange dateRange); @Override Path downloadMetaFile(AbstractBackupPath meta); @Override void cleanupOldMetaFiles(); @Override List<String> getSSTFilesFromMeta(Path localMetaPath); @Override BackupVerificationResult isMetaFileValid(AbstractBackupPath metaBackupPath);  }
@Test public void testMetaPrefix() { Assert.assertEquals(getPrefix() + "/META_V2", metaProxy.getMetaPrefix(null)); Instant now = Instant.now(); Assert.assertEquals( getPrefix() + "/META_V2/" + now.toEpochMilli(), metaProxy.getMetaPrefix(new DateUtil.DateRange(now, null))); Assert.assertEquals( getPrefix() + "/META_V2", metaProxy.getMetaPrefix(new DateUtil.DateRange(null, Instant.now()))); long start = 1834567890L; long end = 1834877776L; Assert.assertEquals( getPrefix() + "/META_V2/1834", metaProxy.getMetaPrefix( new DateUtil.DateRange( Instant.ofEpochSecond(start), Instant.ofEpochSecond(end)))); }