}
}
public void xestAri3712() throws MalformedURLException, IOException {
String url = "https://wayback.archive-it.org/3771/20131119163257/http://nyumedecs.kk5.org/_app/28727/en/resources/container.swf";
CrawlURI curi = setupURI(url);
curi.setVia(UURIFactory.getInstance("http://nyumedecs.kk5.org/"));
long startTime = System.currentTimeMillis();
this.extractor.extract(curi);
long elapsed = System.currentTimeMillis() - startTime;
logger.info(this.extractor.getClass().getSimpleName() + " took "
+ elapsed + "ms to process " + url);
HashMap<CharSequence, String> expected = new HashMap<CharSequence, String>();
expected.put("http://nyumedecs.kk5.org/sm4/portal", "extractorSWFRelToVia");
expected.put("https://wayback.archive-it.org/3771/20131119163257/http://nyumedecs.kk5.org/_app/28727/en/resources/sm4/portal", "extractorSWFRelToBase");
expected.put("http://nyumedecs.kk5.org/", "extractorSWFRelToVia");
expected.put("https://wayback.archive-it.org/", "extractorSWFRelToBase");
expected.put("http://nyumedecs.kk5.org/loadingBarEdit.swf", "extractorSWFRelToVia");
expected.put("https://wayback.archive-it.org/3771/20131119163257/http://nyumedecs.kk5.org/_app/28727/en/resources/loadingBarEdit.swf", "extractorSWFRelToBase");
expected.put("http://nyumedecs.kk5.org/containermain.swf", "extractorSWFRelToVia");
expected.put("https://wayback.archive-it.org/3771/20131119163257/http://nyumedecs.kk5.org/_app/28727/en/resources/containermain.swf", "extractorSWFRelToBase");
for (CrawlURI link: curi.getOutLinks()) {
System.out.println(link + " " + link.getData());
assertEquals(1, link.getAnnotations().size());
String dest = link.toString();
assertTrue(expected.containsKey(dest));