KvsBackedPersistentLockService implements PersistentLockService { public static PersistentLockService create(KeyValueService kvs) { return create(kvs, AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC); } @VisibleForTesting  KvsBackedPersistentLockService(LockStore lockStore); static PersistentLockService create(KeyValueService kvs); static PersistentLockService create(KeyValueService kvs, boolean initializeAsync); @Override PersistentLockId acquireBackupLock(String reason); @Override void releaseBackupLock(PersistentLockId lockId);  }
@Test public void canCreatePersistentLockService() { KeyValueService kvs = new InMemoryKeyValueService(false); PersistentLockService pls = KvsBackedPersistentLockService.create(kvs); assertNotNull(pls); }