@Test
public void atomicMoveWithFallbackFailed() throws Exception {

    final String tempDir = System.getProperty("java.io.tmpdir", "/tmp") +
            File.separator + "filter_service_" + System.nanoTime();
    FileUtils.forceMkdir(new File(tempDir));
    Path a = Paths.get(tempDir).resolve("path_a");
    Path b = Paths.get(tempDir).resolve("path_b");
    assertThatThrownBy(() -> FilterServiceFileUtils.atomicMoveWithFallback(a, b))
            .isInstanceOf(NoSuchFileException.class);
    FileUtils.forceDelete(new File(tempDir));
}