### Question:
JackrabbitRepositorySource extends JcrRepositorySource { @Override public void initialize( RepositoryContext context ) throws RepositorySourceException { super.initialize(context); this.credentialsFactory = new CredentialsFactory(); this.repositoryFactory = new RepositoryFactory(); this.repositoryConnectionFactory = new RepositoryConnectionFactory(); }  @Override synchronized Reference getReference(); @Override void initialize( RepositoryContext context ); @Override RepositoryConnection getConnection(); @Override RepositorySourceCapabilities getCapabilities(); String getUrl(); void setUrl( String url );  }### Answer:
@Test public void shouldSetFactoriesOnInitialize() throws Exception { repositorySource.initialize(null); assertNotNull(getFieldValue(repositorySource, "credentialsFactory")); assertNotNull(getFieldValue(repositorySource, "repositoryFactory")); assertNotNull(getFieldValue(repositorySource, "repositoryConnectionFactory")); }