### Question:
FederatedRepository { public String getSourceName() { return sourceName; } FederatedRepository( String sourceName,
                                RepositoryConnectionFactory connectionFactory,
                                Iterable<FederatedWorkspace> workspaces,
                                CachePolicy defaultCachePolicy,
                                ExecutorService executor ); String getSourceName(); RepositoryConnectionFactory getConnectionFactory(); FederatedWorkspace getWorkspace( String name ); CachePolicy getDefaultCachePolicy(); ExecutorService getExecutor(); @Override String toString();  }### Answer:
@Test public void shouldHaveNameUponCreation() { assertThat(repository.getSourceName(), is(name)); }