public SolrContainer withCollection(String collection) {
        if (StringUtils.isEmpty(collection)) {
            throw new IllegalArgumentException("Collection name must not be empty");
        }
        configuration.setCollectionName(collection);
        return self();
    }
@deprecated use {@link #SolrContainer(DockerImageName)} instead
modules/solr/src/main/java/org/testcontainers/containers/SolrContainer.java