@Override
    public int size(Version version) {

        if (version == Version.INET) {
            return ipv4Tree.size();
        }

        if (version == Version.INET6) {
            return ipv6Tree.size();
        }

        return 0;
    }
@Test
    public void testSize() {
        assertThat("Incorrect size of radix tree for IPv4 maps",
                radixTree.size(IpAddress.Version.INET), is(4));
        assertThat("Incorrect size of radix tree for IPv6 maps",
                radixTree.size(IpAddress.Version.INET6), is(6));
    }