### Question:
LocalFileCheckpointHandler implements CheckpointHandler { @VisibleForTesting Path getCheckpointFilePath(String checkpointName) { checkState(!isNullOrEmpty(checkpointName), "checkpoint name can't be null or empty"); return basePath.resolve(checkpointName); } @VisibleForTesting  LocalFileCheckpointHandler(String directory, FileHelper fileHelper); @Override byte[] readCheckpoint(String checkpointName); @Override void saveCheckpoint(String checkpointName, byte[] checkpoint); static final String CONNECTOR_CHECKPOINT_DIRECTORY; }### Answer:
@Test public void testConstructor() { LocalFileCheckpointHandler handler = new LocalFileCheckpointHandler("checkpointpath", new FileHelper()); assertEquals(createPath("checkpointpath/test_checkpoint"), handler.getCheckpointFilePath("test_checkpoint")); }
@Test public void testConstructorEmptyPath() { LocalFileCheckpointHandler handler = new LocalFileCheckpointHandler("", new FileHelper()); assertEquals(createPath("test_checkpoint"), handler.getCheckpointFilePath("test_checkpoint")); }