    @Test
    public void testCollapseNoneHostname() {

        final HostnameCollapser collapser = new HostnameCollapser(2);
        
        List<String> output = new ArrayList<String>(collapser.collapse(nullMap(Arrays.asList(
                "http://a.example.com:8080",
                "'none'"
                ))).keySet());
        
        Collections.sort(output);
        Assert.assertEquals(output, Arrays.asList(
                "http://a.example.com:8080"
                ));
        
        output = new ArrayList<String>(collapser.collapse(nullMap(Arrays.asList(
                "'none'"
                ))).keySet());
        
        Collections.sort(output);
        Assert.assertEquals(output, Arrays.asList(
                "'none'"
                ));
    }