public void checkAllowedNamespace(String tenant, String namespace, String fromTenant, String fromNamespace) {
        if (!isAllowedNamespace(tenant, namespace, fromTenant, fromNamespace)) {
            throw new IllegalArgumentException("Namespace " + namespace + " is not allowed.");
        }
    }
@Test
    void checkAllowedNamespace() {
        flowService.checkAllowedNamespace("tenant", "namespace", "fromTenant", "fromNamespace");
    }