Harness for dictionaries in Java version