### Question:
FederatedWorkspace { public String getSourceName() { return sourceName; } FederatedWorkspace( RepositoryContext repositoryContext,
                               String sourceName,
                               String workspaceName,
                               Iterable<Projection> projections,
                               CachePolicy cachePolicy ); RepositoryContext getRepositoryContext(); String getSourceName(); String getName(); CachePolicy getCachePolicy(); Problems getProblems(); List<Projection> getProjections(); boolean contains( String sourceName,
                             String workspaceName ); ProjectedNode project( ExecutionContext context,
                                  Location location,
                                  boolean requiresUpdate ); @Override int hashCode(); @Override boolean equals( Object obj );  }### Answer:
@Test public void shouldHaveSameSourceNamePassedIntoConstructor() { assertThat(workspace.getSourceName(), is(sameInstance(sourceName))); }