### Question:
FederatedRepositoryConnection implements RepositoryConnection { public void close() { if (stopwatch != null) { LOGGER.trace("Processing federated requests:\n" + stopwatch.getDetailedStatistics()); } } FederatedRepositoryConnection( FederatedRepository repository,
                                   Observer observer ); CachePolicy getDefaultCachePolicy(); String getSourceName(); XAResource getXAResource(); boolean ping( long time,
                         TimeUnit unit ); void execute( ExecutionContext context,
                         final Request request ); void close();  }### Answer:
@Test public void shouldAllowCloseToBeCalledRepeatedly() { for (int i = 0; i != 10; ++i) { connection.close(); } }