    @Test
    public void copyFileToDirectoryTest() throws IOException, KubernetesPluginException {

        File testFile = tempDirectory.resolve("copy.txt").toFile();
        Assert.assertTrue(testFile.createNewFile());
        Path destinationDir = Files.createTempDirectory("copy-test-");
        KubernetesUtils.copyFileOrDirectory(testFile.getAbsolutePath(), destinationDir.toString());
    
        // assert
        Assert.assertTrue(Files.exists(destinationDir.resolve("copy.txt")));
    
        // clean up
        FileUtils.deleteQuietly(testFile);
        FileUtils.deleteQuietly(destinationDir.toFile());
    }