@Test
public void externalHref() throws Exception {

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