@Test
    public void testJabberDotOrgMock() throws Exception {
        // setup
        final SrvRecord fallback = new SrvRecord("fallback.jabber.org", 5269, false, 31, 31);
        final SrvRecord hermes6  = new SrvRecord("hermes6.jabber.org",  5269, false, 30, 30);
        final SrvRecord hermes   = new SrvRecord("hermes.jabber.org",   5269, false, 30, 30);

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

        // verify
        assertEquals(2, result.size(), "There are two distinct priority values in the input, so two priority groups should be part of the result.");
        assertEquals(2, result.get(0).size(), "The priority group with the lowest priority value (30) should have two entries in it");
        assertEquals(1, result.get(1).size(), "The priority group with the highest priority value (31) should have one entry in it");
        assertTrue(result.get(0).contains(hermes), "The 'hermes' host should have been included somewhere in the first priority group.");
        assertTrue(result.get(0).contains(hermes6), "The 'hermes6' host should have been included somewhere in the first priority group.");
        assertTrue(result.get(1).contains(fallback), "The 'fallback' host should have been included somewhere in the second priority group.");
    }
Runs {@link SrvRecord#prioritize(SrvRecord[])} 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/SrvRecordTest.java