// Path: src/main/java/at/grahsl/kafka/connect/mongodb/MongoDbSinkConnectorConfig.java
// interface ValidatorWithOperators extends ConfigDef.Validator {
// 
//     default ValidatorWithOperators or(ConfigDef.Validator other) {
//         return (name, value) -> {
//             try {
//                 this.ensureValid(name, value);
//             } catch (ConfigException e) {
//                 other.ensureValid(name, value);
//             }
//         };
//     }
// 
//     default ValidatorWithOperators and(ConfigDef.Validator other) {
//         return  (name, value) -> {
//             this.ensureValid(name, value);
//             other.ensureValid(name, value);
//         };
//     }
// }


import org.apache.kafka.common.config.ConfigException;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import java.util.regex.Pattern;
import static at.grahsl.kafka.connect.mongodb.MongoDbSinkConnectorConfig.ValidatorWithOperators;
import static org.junit.jupiter.api.Assertions.assertThrows;
package at.grahsl.kafka.connect.mongodb;




@RunWith(JUnitPlatform.class)
public class ValidatorWithOperatorsTest {


    public static final String NAME = "name";
    public static final Object ANY_VALUE = null;

// Path: src/main/java/at/grahsl/kafka/connect/mongodb/MongoDbSinkConnectorConfig.java
// interface ValidatorWithOperators extends ConfigDef.Validator {
// 
//     default ValidatorWithOperators or(ConfigDef.Validator other) {
//         return (name, value) -> {
//             try {
//                 this.ensureValid(name, value);
//             } catch (ConfigException e) {
//                 other.ensureValid(name, value);
//             }
//         };
//     }
// 
//     default ValidatorWithOperators and(ConfigDef.Validator other) {
//         return  (name, value) -> {
//             this.ensureValid(name, value);
//             other.ensureValid(name, value);
//         };
//     }
// }


// Path: src/test/java/at/grahsl/kafka/connect/mongodb/ValidatorWithOperatorsTest.java
import org.apache.kafka.common.config.ConfigException;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import java.util.regex.Pattern;
import static at.grahsl.kafka.connect.mongodb.MongoDbSinkConnectorConfig.ValidatorWithOperators;
import static org.junit.jupiter.api.Assertions.assertThrows;

package at.grahsl.kafka.connect.mongodb;




@RunWith(JUnitPlatform.class)
public class ValidatorWithOperatorsTest {


    public static final String NAME = "name";
    public static final Object ANY_VALUE = null;

    final ValidatorWithOperators PASS = (name, value) -> {