### Question:
SearchableRepositorySource implements RepositorySource { public int getRetryLimit() { return delegate.getRetryLimit(); } SearchableRepositorySource( RepositorySource wrapped,
                                       SearchEngine searchEngine,
                                       ExecutorService executorService,
                                       boolean executeAsynchronously,
                                       boolean updateIndexesAsynchronously );  SearchableRepositorySource( RepositorySource wrapped,
                                       SearchEngine searchEngine ); String getName(); void close(); RepositorySourceCapabilities getCapabilities(); RepositoryConnection getConnection(); int getRetryLimit(); void initialize( final RepositoryContext context ); void setRetryLimit( int limit ); Reference getReference();  }### Answer:
@Test public void shouldReturnRetryLimitOfWrappedSource() { wrapped = mock(RepositorySource.class); when(wrapped.getRetryLimit()).thenReturn(3); searchable = newSynchronousSearchable(); assertThat(searchable.getRetryLimit(), is(wrapped.getRetryLimit())); verify(wrapped, times(2)).getRetryLimit(); }