### Question:
RepositoryLocator extends BaseLocator<RepositoryFile> { protected abstract IUnifiedRepository getUnifiedRepository( IPentahoSession session ) throws Exception; protected  RepositoryLocator();  RepositoryLocator( List<IDocumentListener> documentListeners ); @Override void startScan();  }### Answer:
@Test public void testGetUnifiedRepository() throws Exception { RepositoryLocator reploc = new RepositoryLocator() { @Override protected IUnifiedRepository getUnifiedRepository( IPentahoSession session ) throws Exception { return repository; } @Override protected Object getContents( RepositoryFile locatedItem ) throws Exception { return null; } @Override public URI getRootUri() { return null; } }; assertEquals( reploc.getUnifiedRepository( session ), repository ); }