MetaV2Proxy implements IMetaProxy { @Override public List<String> getSSTFilesFromMeta(Path localMetaPath) throws Exception { MetaFileBackupWalker metaFileBackupWalker = new MetaFileBackupWalker(); metaFileBackupWalker.readMeta(localMetaPath); return metaFileBackupWalker.backupRemotePaths; } @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 testGetSSTFilesFromMeta() throws Exception { Instant snapshotInstant = DateUtil.getInstant(); List<String> remoteFiles = getRemoteFakeFiles(); Path metaPath = backupUtils.createMeta(remoteFiles, snapshotInstant); List<String> filesFromMeta = metaProxy.getSSTFilesFromMeta(metaPath); filesFromMeta.removeAll(remoteFiles); Assert.assertTrue(filesFromMeta.isEmpty()); }