private void assertConfiguration(FileUpload fileUpload) {
        JSONObject cfg = fileUpload.getWidgetConfiguration();
        System.out.println("FileInput Config = " + cfg);
        assertFalse(cfg.has("skinSimple"));
        assertTrue(cfg.getBoolean("auto"));
        assertFalse(cfg.getBoolean("dnd"));
        assertTrue(cfg.getBoolean("sequentialUploads"));
        assertEquals(4, Integer.parseInt(fileUpload.getInput().getAttribute("data-p-filelimit")));
        assertEquals(100, Long.parseLong(fileUpload.getInput().getAttribute("data-p-sizelimit")));
        assertEquals("/(\\.|\\/)(csv)$/", fileUpload.getInput().getAttribute("data-p-allowtypes"));
        assertNotNull(fileUpload.getInput().getAttribute("multiple"));
    }
Tests advanced auto multiple sequential file upload.
p:fileUpload mode=advanced auto=true multiple=true dragDrop=false sequential=true
primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/fileupload/FileUpload010Test.java