### Question:
RepositoryService implements AdministeredService, Observer { public final ExecutionContext getExecutionEnvironment() { return context; } RepositoryService( RepositorySource configurationSource,
                              String configurationWorkspaceName,
                              Path pathToConfigurationRoot,
                              ExecutionContext context,
                              ObservationBus observationBus,
                              Problems problems ); final ServiceAdministrator getAdministrator(); final String getConfigurationSourceName(); final String getConfigurationWorkspaceName(); final RepositoryLibrary getRepositoryLibrary(); final ExecutionContext getExecutionEnvironment(); String getJndiName(); @Override boolean equals( Object obj ); void notify( Changes changes ); boolean requiresGarbageCollection(); void runGarbageCollection( Problems problems ); static final int MAXIMUM_NUMBER_OF_PASSES_PER_GC_RUN; }### Answer:
@Test public void shouldHaveAnExecutionEnvironmentAfterInstantiation() { assertThat(service.getExecutionEnvironment(), is(notNullValue())); assertThat(service.getExecutionEnvironment(), is(sameInstance(context))); }