@Override
    public Set<String> getMapping(URL consumerURL) {
        Set<String> mappingByUrl = ServiceNameMapping.getMappingByUrl(consumerURL);
        if (mappingByUrl != null) {
            return mappingByUrl;
        }
        return mappingCacheManager.get(ServiceNameMapping.buildMappingKey(consumerURL));
    }
@Test
    void testGetServices() {
        url = url.addParameter(PROVIDED_BY, "app1,app2");
        Set<String> services = mapping.getMapping(url);
        Assertions.assertTrue(services.contains("app1"));
        Assertions.assertTrue(services.contains("app2"));

        //        // remove mapping cache, check get() works.
        //        mapping.removeCachedMapping(ServiceNameMapping.buildMappingKey(url));
        //        services = mapping.initInterfaceAppMapping(url);
        //        Assertions.assertTrue(services.contains("remote-app1"));
        //        Assertions.assertTrue(services.contains("remote-app2"));

        //        Assertions.assertNotNull(mapping.getCachedMapping(url));
        //        Assertions.assertIterableEquals(mapping.getCachedMapping(url), services);
    }