@Override
    public boolean remove(IpPrefix prefix) {

        String prefixString = getPrefixString(prefix);

        if (prefix.isIp4()) {
            return ipv4Tree.remove(prefixString);
        }

        if (prefix.isIp6()) {
            return ipv6Tree.remove(prefixString);
        }

        return false;
    }
@Test
    public void testRemove() {
        radixTree.remove(ipv4PrefixKey1);
        assertThat("Incorrect size of radix tree for IPv4 maps",
                radixTree.size(IpAddress.Version.INET), is(3));
        assertNull("There should not be any value associated with the key ipv4PrefixKey1",
                radixTree.getValueForExactAddress(ipv4PrefixKey1));

        radixTree.remove(ipv6PrefixKey1);
        assertThat("Incorrect size of radix tree for IPv6 maps",
                radixTree.size(IpAddress.Version.INET6), is(5));
        assertNull("There should not be any value associated with the key ipv6PrefixKey1",
                radixTree.getValueForExactAddress(ipv6PrefixKey1));
    }