public static void addLockOptions(String basePath, TypedProperties props) {
    if (!props.containsKey(HoodieLockConfig.LOCK_PROVIDER_CLASS_NAME.key())) {
      props.putAll(FileSystemBasedLockProvider.getLockConfig(basePath));
    }
  }
@Test
  void testAddLockOptions() {
    TypedProperties props1 = new TypedProperties();
    UtilHelpers.addLockOptions("path1", props1);
    assertEquals(FileSystemBasedLockProvider.class.getName(), props1.getString(HoodieLockConfig.LOCK_PROVIDER_CLASS_NAME.key()));

    TypedProperties props2 = new TypedProperties();
    props2.put(HoodieLockConfig.LOCK_PROVIDER_CLASS_NAME.key(), "Dummy");
    UtilHelpers.addLockOptions("path2", props2);
    assertEquals(1, props2.size(), "Should not add lock options if the lock provider is already there.");
  }