@Test
public void testInternationalCharsInSeedList() throws Exception {

    String seed1 = "http://www.pølse.dk/enfil";
    String seed2 = "http://www.pølse.dk/enpølse";
    String seed3 ="http://www.uden.dk/enpølse";
    SeedList seedList = new SeedList("pølse.dk", asList(new String[] {seed1, seed2, seed3}));
    DomainConfiguration domainConfiguration = new DomainConfiguration(
            "pølse.dk", "pølse.dk", new DomainHistory(),
            new ArrayList<String>(), asList(new SeedList[] {seedList}), new ArrayList<Password>());
    Job job = createDefaultJob(domainConfiguration);
    Set<String> internationalizedSeeds = Sets.newSet(
            "http://www.pølse.dk/enfil",
            "http://www.xn--plse-gra.dk/enfil",
            "http://www.pølse.dk/enpølse",
            "http://www.xn--plse-gra.dk/enpølse",
            "http://www.uden.dk/enpølse");
    Set<String> seedsFromJob = new HashSet<>();
    BufferedReader reader = new BufferedReader(new StringReader(job.getSeedListAsString()));
    String s;
    while ((s = reader.readLine()) != null) {
        seedsFromJob.add(s);
    }
    assertEquals(internationalizedSeeds, seedsFromJob);
}