ClassPathResourceManage implements Manage { @Override public EntityMetaData identityProviderByEntityId(String entityId) { return nonEmptyOptionalToEntityMetaData(entityId, identityProviderOptionalByEntityId(entityId)); } ClassPathResourceManage(); @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); void allowAll(boolean allowAll);  }
@Test public void testInstitutionId() throws Exception { EntityMetaData sara = manage.identityProviderByEntityId("http: assertEquals("surfconext", sara.getInstitutionId()); }