### Question:
RepositoryLocator extends BaseLocator<RepositoryFile> { @Override public void startScan() throws MetaverseLocatorException { if ( unifiedRepository == null ) { try { unifiedRepository = getUnifiedRepository( session ); } catch ( Exception e ) { throw new MetaverseLocatorException( Messages.getString( "ERROR.RepositoryLocator.ScanAbortedNoRepo" ), e ); } } RepositoryRequest request = new RepositoryRequest( ClientRepositoryPaths.getRootFolderPath(), true, -1, null ); RepositoryFileTree root = unifiedRepository.getTree( request ); List<RepositoryFileTree> children = root.getChildren(); LocatorRunner lr = new RepositoryLocatorRunner(); lr.setRoot( children ); startScan( lr ); } protected  RepositoryLocator();  RepositoryLocator( List<IDocumentListener> documentListeners ); @Override void startScan();  }### Answer:
@Test public void testStartScan() throws Exception { when( baseLocator.getUnifiedRepository( any( IPentahoSession.class ) ) ).thenReturn( repository ); when( repository.getTree( any( RepositoryRequest.class ) ) ).thenReturn( mock( RepositoryFileTree.class ) ); baseLocator.startScan(); }