public static Map<String, String> parseConfigs(final String formattedConfigs) {
        Objects.requireNonNull(formattedConfigs, "Formatted config String can't be null");

        if (formattedConfigs.indexOf('=') == -1) {
            throw new IllegalStateException(String.format("Provided string [ %s ] does not have expected key-value separator of '='", formattedConfigs));
        }

        final String[] parts = formattedConfigs.split(",");
        final Map<String, String> configs = new HashMap<>();
        for (final String part : parts) {
            final String[] keyValue = part.split("=");
            if (keyValue.length > 2) {
                throw new IllegalStateException(
                    String.format("Provided string [ %s ] does not have expected key-value pair separator of ','", formattedConfigs));
            }
            configs.put(keyValue[KEY], keyValue[VALUE]);
        }
        return configs;
    }
Takes a string with keys and values separated by '=' and each key value pair
separated by ',' for example max.block.ms=5000,retries=6,request.timeout.ms=6000

This class makes it easier to pass configs from the system test in python to the Java test.

@param formattedConfigs the formatted config string
@return HashMap with keys and values inserted
streams/src/test/java/org/apache/kafka/streams/tests/SystemTestUtil.java