public void setMinLength(int minLength) {
        if (minLength < 1) {
            throw new IllegalArgumentException("Invalid minimum length");
        }
        this.minLength = minLength;
    }
@Test
    public void testValidateEconding() {
        StringsConfig config = new StringsConfig();
        assertThrows(IllegalArgumentException.class, () -> {
            config.setMinLength(0);
        });
    }