@Test
    public void testConstructLookup() throws Exception
    {
        // Setup test fixture.
        final String service = "xmpp-client";
        final String protocol = "tcp";
        final String name = "igniterealtime.org";

        // Execute system under test.
        final String result = DNSUtil.constructLookup(service, protocol, name);

        // Verify results.
        assertEquals("_xmpp-client._tcp.igniterealtime.org.", result);
    }
Verifies that {@link DNSUtil#constructLookup(String, String, String)} successfully constructs a query part.
xmppserver/src/test/java/org/jivesoftware/openfire/net/DNSUtilTest.java