public void whenFollowExternalUrlDoFollow() throws IOException {
CrawljaxConfigurationBuilder builder =
CrawljaxConfiguration.builderFor("http://example.com");
builder.crawlRules().click("a");
builder.crawlRules().followExternalLinks(true);
CrawljaxConfiguration config = builder.build();
CandidateElementExtractor extractor = newElementExtractor(config);
List<CandidateElement> extract = extractFromTestFile(extractor);
assertThat(config.getCrawlRules().followExternalLinks(), is(true));
assertThat(extract, hasSize(3));
}