protected ContentRepository createRepository() {
OakSolrConfiguration testConfiguration = TestUtils.getTestConfiguration();
try {
solrServer = TestUtils.createSolrServer();
return new Oak().with(new InitialContent())
.with(new OpenSecurityProvider())
.with(TestUtils.getTestQueryIndexProvider(solrServer, testConfiguration))
.with(TestUtils.getTestIndexHookProvider(solrServer, testConfiguration))
.createContentRepository();
} catch (Exception e) {
throw new RuntimeException(e);