@Override
    public VectorIndexConfig setName(String name) {
        validateName(name);
        this.indexName = name;
        return this;
    }
@Test
    public void constructorNameValidation_failed() {
        assertThatThrownBy(() -> new VectorIndexConfig().setName("asd*%6(&"))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessage("The name of the vector index should "
                        + "only consist of letters, numbers, and the symbols \"-\" or \"_\".");
    }