conf.put(BasicLockProvider.KEY_DIRECTORY, "${LOCATION}");
ServiceProfile<ExecutionLockProvider> profile = new ServiceProfile<ExecutionLockProvider>(
"testing", BasicLockProvider.class, conf, new ProfileContext(getClass().getClassLoader(), var));
ExecutionLockProvider instance = profile.newInstance();
ExecutionLock lock = instance.newInstance("batch");
try {
lock.beginFlow("flow", "exec");
assertThat(lockDir.list().length, is(greaterThan(start)));
} finally {
lock.close();