@Test
    public void testRemoveBracketsFromIpv6AddressWithBrackets() throws Exception
    {
        // Setup test fixture.
        final String input = "[2001:db8:ffff:ffff:ffff:ffff:ffff:ffff]";

        // Execute system under test.
        final String result = IpUtils.removeBracketsFromIpv6Address(input);

        // Verify results.
        assertEquals("2001:db8:ffff:ffff:ffff:ffff:ffff:ffff", result);
    }
Asserts that {@link IpUtils#removeBracketsFromIpv6Address(String)} returns the IPv6 input value without brackets.
xmppserver/src/test/java/org/jivesoftware/util/IpUtilsTest.java