pluginLocator = (pluginLocator != null) ? pluginLocator : new MockPluginLocator();
fileModificationService = (fileModificationService != null) ? fileModificationService : new ReadWriteCompatiblePessimisticFileModificationService();
loggerFactory = (loggerFactory != null) ? loggerFactory : new StubLoggerFactory();
appVersionGenerator = (appVersionGenerator != null) ? appVersionGenerator : new MockAppVersionGenerator();
BRJS brjs = new BRJS(brjsDir, pluginLocator, loggerFactory, new TestTimeAccessor(), appVersionGenerator);
brjs.setFileModificationService(fileModificationService);
return brjs;
}