@Test
    public void testNameCoverageSubSubdomainWithWildcard() throws Exception
    {
        // setup
        final String name = "deeper.xmpp.example.org";
        final String pattern = "*.example.org";

        // do magic
        final boolean result = DNSUtil.isNameCoveredByPattern( name, pattern );

        // verify
        assertTrue( result );
    }
A test that verifies that {@link DNSUtil#isNameCoveredByPattern(String, String)} finds a match when the
needle/name is a subdomain of a subdomain of the DNS pattern, while the DNS pattern includes a wildcard.
xmppserver/src/test/java/org/jivesoftware/openfire/net/DNSUtilTest.java