UrlResourceManage implements Manage { @Override public Map<String, EntityMetaData> serviceProvidersByEntityIds(Collection<String> entityIds) { Map<String, EntityMetaData> serviceProviders = getEntityMetaDataMap(entityIds, this::getSpResource); Set<String> allEntityIds = serviceProviders.keySet(); List<String> missing = entityIds.stream().filter(s -> !allEntityIds.contains(s)).collect(toList()); if (!missing.isEmpty()) { Map<String, EntityMetaData> relyiingParties = getEntityMetaDataMap(missing, this::getRpResource); serviceProviders.putAll(relyiingParties); } return serviceProviders; } UrlResourceManage(
            String username,
            String password,
            String manageBaseUrl); @Override List<EntityMetaData> serviceProviders(); @Override List<EntityMetaData> identityProviders(); @Override Set<EntityMetaData> identityProvidersByAuthenticatingAuthority(String authenticatingAuthority); @Override Set<EntityMetaData> serviceProvidersByInstitutionId(String institutionId); @Override Optional<EntityMetaData> serviceProviderOptionalByEntityId(String entityId); @Override Optional<EntityMetaData> identityProviderOptionalByEntityId(String entityId); @Override Map<String, EntityMetaData> identityProvidersByEntityIds(Collection<String> entityIds); @Override Map<String, EntityMetaData> serviceProvidersByEntityIds(Collection<String> entityIds); @Override EntityMetaData serviceProviderByEntityId(String entityId); @Override EntityMetaData identityProviderByEntityId(String entityId);  }
@Test public void testServiceProvidersByEntityIds() { Map<String, EntityMetaData> result = subject.serviceProvidersByEntityIds(Arrays.asList("https: assertEquals(51, result.size()); }