@Test
public void badMix() throws Exception {

    final MultipartFile multipartFile = getThisUnitTestMultipartFile("uk/ac/ed/ph/qtiworks/services/BadMix.zip", "application/zip");
    try {
        assessmentPackageFileImporter.importAssessmentPackageData(importSandboxDirectory, multipartFile);
        Assert.fail("Should have failed");
    }
    catch (final AssessmentPackageDataImportException e) {
        Assert.assertEquals(ImportFailureReason.UNSUPPORTED_PACKAGE_CONTENTS, e.getFailure().getReason());
        final List<?> failureArguments = e.getFailure().getArguments();
        Assert.assertEquals(2, failureArguments.size());
        Assert.assertEquals(Integer.valueOf(1), failureArguments.get(0)); /* 1 item */
        Assert.assertEquals(Integer.valueOf(2), failureArguments.get(1)); /* 2 tests */
    }
}