@Test
    @Deprecated // This tests a deprecated implementation. A test for the replacement code already exists. Simply delete this when the deprecated code gets removed.
    public void testJabberDotOrgMock() throws Exception {
        // setup
        final DNSUtil.WeightedHostAddress fallback = new DNSUtil.WeightedHostAddress("fallback.jabber.org", 5269, false, 31, 31);
        final DNSUtil.WeightedHostAddress hermes6  = new DNSUtil.WeightedHostAddress("hermes6.jabber.org",  5269, false, 30, 30);
        final DNSUtil.WeightedHostAddress hermes   = new DNSUtil.WeightedHostAddress("hermes.jabber.org",   5269, false, 30, 30);

        // do magic
        final List<DNSUtil.WeightedHostAddress> result = DNSUtil.prioritize(new DNSUtil.WeightedHostAddress[]{fallback, hermes6, hermes});

        // verify
        assertEquals(3, result.size(), "There were three records in the input, the output should have contained the same amount.");
        assertTrue(result.contains(hermes), "The 'hermes' host should have been included somewhere in the output.");
        assertTrue(result.contains(hermes6), "The 'hermes6' host should have been included somewhere in the output.");
        assertTrue(result.contains(fallback), "The 'fallback' host should have been included somewhere in the output.");
        assertEquals(fallback, result.get(2), "The 'fallback' host should have been the last record in the result.");
    }
Runs {@link DNSUtil#prioritize(org.jivesoftware.openfire.net.DNSUtil.WeightedHostAddress[])} on a copy of the
DNS SRV xmpp-server records for jabber.org (as they were last 2012).
xmppserver/src/test/java/org/jivesoftware/openfire/net/DNSUtilTest.java