### Question:
BackupManager { void copyTableSnapshot(@NotNull final String snapshot, @NotNull final String keyspace, @NotNull final String table) throws IOException { final File srcDir = findTableSnapshotDir(keyspace, table, snapshot); final File destDir = new File(backupDir, keyspace + "/" + table); Files.createDirectories(destDir.toPath()); final File[] files = srcDir.listFiles(); if (files != null) { for (final File file : files) { if (file.isFile()) { Files.copy(file.toPath(), new File(destDir, file.getName()).toPath(), StandardCopyOption.REPLACE_EXISTING); } } } } BackupManager(@NotNull final JmxConnect jmxConnect, @NotNull final String backupDir); void backup(@NotNull final String keyspace); void backup(@NotNull final String keyspace, @NotNull final String snapshot); void restore(@NotNull final String keyspace);  }### Answer:
@Test public void copyTableSnapshot() throws IOException { createCassandraDirs(KEYSPACE, TABLE, SNAPSHOT, true); backupManager.copyTableSnapshot(SNAPSHOT, KEYSPACE, TABLE); assertTrue(new File(backupDir, KEYSPACE + "/" + TABLE + "/data.db").exists()); assertTrue(new File(backupDir, KEYSPACE + "/" + TABLE + "/index.db").exists()); }