private static final String JACKRABBIT_HOME = "target/jackrabbit";
private RepositoryImpl repository;
protected UsersRepository getUsersRepository() throws Exception {
JCRUsersRepository repos = new JCRUsersRepository();
repos.setRepository(repository);
DefaultConfigurationBuilder config = new DefaultConfigurationBuilder();
config.addProperty("username", "admin");
config.addProperty("password", "test");
repos.configure(config);
repos.setLog(new SimpleLog("MockLog"));
return repos;
}