private Map<String, Object> expectations(String... strings) {
        Map<String, Object> expectations = new LinkedHashMap<>();
        int index = 0;
        assertEquals("The number of arguments for 'expectations' must be even", 0, strings.length % 2);

        while (index < strings.length) {
            expectations.put(ExpressionStringBuilder.toString(parsePath(strings[index])), strings[index + 1]);
            index += 2;
        }
        return expectations;
    }
Converts a more readable list of keys and values into what the ClusterTest supports.

@param strings List of  ["key", "value"]
@return A Map of the same keys and values that is in the right format.
udfs/drill/src/it/tests/src/test/java/org/apache/drill/exec/udfs/TestUserAgentFunctions.java