@Test
    public void testNameCoveragePartialMatchButNoSubdomain() throws Exception
    {
        // setup
        final String name = "xmppexample.org";
        final String pattern = "example.org";

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

        // verify
        assertFalse( result );
    }
A test that verifies that {@link DNSUtil#isNameCoveredByPattern(String, String)} does not find a match when the
last part of the needle/name equals the pattern.
xmppserver/src/test/java/org/jivesoftware/openfire/net/DNSUtilTest.java