### Question:
RepositoryContext { public static RepositoryContext fromConfiguration() { checkState(Configuration.isInitialized(), "configuration not initialized"); return new Builder() .setIdentitySourceConfiguration(IdentitySourceConfiguration.fromConfiguration()) .setReferenceIdentitySourceConfiguration( IdentitySourceConfiguration.getReferenceIdentitySourcesFromConfiguration()) .build(); } private  RepositoryContext(Builder builder); ImmutableMap<String, IdentitySourceConfiguration> getReferenceIdentitySourceConfiguration(); IdentitySourceConfiguration getIdentitySourceConfiguration(); Optional<RepositoryContext> getRepositoryContextForReferenceIdentitySource(
      String referenceSourceName); IdentityUser buildIdentityUser(String googleId, String externalId); IdentityGroup buildIdentityGroup(
      String externalGroupId, Supplier<Set<Membership>> members); EntityKey buildEntityKeyForGroup(String externalGroupId); static RepositoryContext fromConfiguration(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testFromConfiguration() { Properties properties = new Properties(); properties.put("api.identitySourceId", "idSource1"); properties.put("api.referenceIdentitySources", "idSource1,idSource2"); properties.put("api.referenceIdentitySource.idSource1.id", "refId1"); properties.put("api.referenceIdentitySource.idSource2.id", "refId2"); setupConfig.initConfig(properties); IdentitySourceConfiguration sourceConfiguration = new IdentitySourceConfiguration.Builder("idSource1").build(); IdentitySourceConfiguration refConfiguration1 = new IdentitySourceConfiguration.Builder("refId1").build(); IdentitySourceConfiguration refConfiguration2 = new IdentitySourceConfiguration.Builder("refId2").build(); RepositoryContext context = RepositoryContext.fromConfiguration(); assertThat(context.getIdentitySourceConfiguration(), equalTo(sourceConfiguration)); assertThat( context.getReferenceIdentitySourceConfiguration(), equalTo(ImmutableMap.of("idSource1", refConfiguration1, "idSource2", refConfiguration2))); }