@Override
    public TenantId getTenantId(NetworkId networkId) {
        VirtualNetwork virtualNetwork = getVirtualNetwork(networkId);
        checkNotNull(virtualNetwork, "The network does not exist.");
        return virtualNetwork.tenantId();
    }
@Test
    public void testGetTenantIdForRegisteredVirtualNetwork() {
        VirtualNetwork virtualNetwork = setupVirtualNetworkTopology(tenantIdValue1);
        TenantId tenantId = manager.getTenantId(virtualNetwork.id());

        assertThat(tenantId.toString(), is(tenantIdValue1));
    }