@Override
protected Repository[] createRepository(RepositoryFixture fixture) throws Exception {
if (noIterations != -1) {
if (fixture instanceof OakRepositoryFixture) {
final String configName = (runWithToken) ? TokenConfiguration.NAME : UserConfiguration.NAME;
return ((OakRepositoryFixture) fixture).setUpCluster(1, new JcrCreator() {
@Override
public Jcr customize(Oak oak) {
Map<String, Integer> map = Collections.singletonMap(UserConstants.PARAM_PASSWORD_HASH_ITERATIONS, noIterations);
ConfigurationParameters conf = ConfigurationParameters.of(map);
SecurityProvider sp = new SecurityProviderImpl(ConfigurationParameters.of(ImmutableMap.of(configName, conf)));