private static void deleteFolder(Path path) {
        try {
            Files.walk(path)
                    .sorted(Comparator.reverseOrder())
                    .map(Path::toFile)
                    .forEach(File::delete);
        }
        catch (IOException ignore) {
        }
    }
Tests advanced single file upload. p:fileUpload mode=advanced auto=false
multiple=false dragDrop=false maxChunkSize="1024k"
primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/fileupload/FileUpload011Test.java