### Question:
MoveCleanupPolicy implements FileCleanupPolicy { @Override public void configure(final Map<String, ?> configs) { this.configs = new MoveFileCleanerConfig(configs); }  @Override void configure(final Map<String, ?> configs); @Override boolean onSuccess(final SourceFile source); @Override boolean onFailure(final SourceFile source); @Override void close();  }### Answer:
@Test public void shouldMoveFileGivenCompletedSource() { MoveCleanupPolicy policy = new MoveCleanupPolicy(); policy.configure(config); Boolean result = policy.apply(source.withStatus(SourceStatus.COMPLETED)); assertTrue(Files.exists(Paths.get(succeedDirectory.getAbsolutePath(), file.getName()))); assertTrue(result); }
@Test public void shouldMoveFileGivenFailedSource() { MoveCleanupPolicy policy = new MoveCleanupPolicy(); policy.configure(config); Boolean result = policy.apply(source.withStatus(SourceStatus.FAILED)); assertTrue(Files.exists(Paths.get(failedDirectory.getAbsolutePath(), file.getName()))); assertTrue(result); }