### Question:
DIRepositoryLocator extends RepositoryLocator { protected Repository getRepository() throws Exception { if ( repository == null ) { TransformationMap transformationMap = CarteSingleton.getInstance().getTransformationMap(); SlaveServerConfig slaveServerConfig = transformationMap.getSlaveServerConfig(); repository = slaveServerConfig.getRepository(); } if ( repository == null ) { LOG.error( Messages.getErrorString( "ERROR.RepositoryNotFoundInConfiguration" ) ); } return repository; } DIRepositoryLocator();  DIRepositoryLocator( List<IDocumentListener> documentListeners ); void setUnifiedRepository( IUnifiedRepository unifiedRepository ); void setRepository( Repository repository ); @Override URI getRootUri(); static final String LOCATOR_TYPE; }### Answer:
@Test public void testGetRepositoryNullRepository() throws Exception { DIRepositoryLocator locator = new DIRepositoryLocator(); assertNull( locator.repository ); locator.getRepository(); }