@Test
    public void testOneHostZeroPriority() throws Exception {
        // setup
        final SrvRecord host = new SrvRecord("host", 5222, false, 0, 1);

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

        // verify
        assertEquals(1, result.size());
        assertEquals(host, result.get(0).iterator().next());
    }
A check equal to {@link #testOneHost()}, but using (the edge-case) priority value of zero.
xmppserver/src/test/java/org/jivesoftware/openfire/net/SrvRecordTest.java